home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / treetex / tree_doc.tex / node6_ct.html < prev    next >
LaTeX Document  |  1989-11-22  |  15.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
90% dexvert Hypertext Markup Language File (text/html) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX document text default
98% file exported SGML document text default
97% file exported SGML document, ASCII text default
80% TrID HyperText Markup Language with DOCTYPE default
19% TrID HyperText Markup Language default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% gt2 HTML (Hyper Text Markup Language) Datei default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/html default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 54 68 | 65 20 69 6e 74 65 72 6e |ts of Th|e intern|
|000000b0| 61 6c 20 72 65 70 72 65 | 73 65 6e 74 61 74 69 6f |al repre|sentatio|
|000000c0| 6e 3c 2f 54 49 54 4c 45 | 3e 0a 0a 3c 4d 45 54 41 |n</TITLE|>..<META|
|000000d0| 20 48 54 54 50 2d 45 51 | 55 49 56 3d 22 43 6f 6e | HTTP-EQ|UIV="Con|
|000000e0| 74 65 6e 74 2d 54 79 70 | 65 22 20 43 4f 4e 54 45 |tent-Typ|e" CONTE|
|000000f0| 4e 54 3d 22 74 65 78 74 | 2f 68 74 6d 6c 3b 20 63 |NT="text|/html; c|
|00000100| 68 61 72 73 65 74 3d 75 | 74 66 2d 38 22 3e 0a 3c |harset=u|tf-8">.<|
|00000110| 4d 45 54 41 20 4e 41 4d | 45 3d 22 76 69 65 77 70 |META NAM|E="viewp|
|00000120| 6f 72 74 22 20 43 4f 4e | 54 45 4e 54 3d 22 77 69 |ort" CON|TENT="wi|
|00000130| 64 74 68 3d 64 65 76 69 | 63 65 2d 77 69 64 74 68 |dth=devi|ce-width|
|00000140| 2c 20 69 6e 69 74 69 61 | 6c 2d 73 63 61 6c 65 3d |, initia|l-scale=|
|00000150| 31 2e 30 22 3e 0a 3c 4d | 45 54 41 20 4e 41 4d 45 |1.0">.<M|ETA NAME|
|00000160| 3d 22 47 65 6e 65 72 61 | 74 6f 72 22 20 43 4f 4e |="Genera|tor" CON|
|00000170| 54 45 4e 54 3d 22 4c 61 | 54 65 58 32 48 54 4d 4c |TENT="La|TeX2HTML|
|00000180| 20 76 32 30 32 32 22 3e | 0a 0a 3c 4c 49 4e 4b 20 | v2022">|..<LINK |
|00000190| 52 45 4c 3d 22 53 54 59 | 4c 45 53 48 45 45 54 22 |REL="STY|LESHEET"|
|000001a0| 20 48 52 45 46 3d 22 74 | 72 65 65 5f 64 6f 63 2e | HREF="t|ree_doc.|
|000001b0| 63 73 73 22 3e 0a 0a 3c | 4c 49 4e 4b 20 52 45 4c |css">..<|LINK REL|
|000001c0| 3d 22 6e 65 78 74 22 20 | 48 52 45 46 3d 22 6e 6f |="next" |HREF="no|
|000001d0| 64 65 37 5f 6d 6e 2e 68 | 74 6d 6c 22 3e 0a 3c 4c |de7_mn.h|tml">.<L|
|000001e0| 49 4e 4b 20 52 45 4c 3d | 22 70 72 65 76 69 6f 75 |INK REL=|"previou|
|000001f0| 73 22 20 48 52 45 46 3d | 22 6e 6f 64 65 35 5f 6d |s" HREF=|"node5_m|
|00000200| 6e 2e 68 74 6d 6c 22 3e | 0a 3c 4c 49 4e 4b 20 52 |n.html">|.<LINK R|
|00000210| 45 4c 3d 22 75 70 22 20 | 48 52 45 46 3d 22 74 72 |EL="up" |HREF="tr|
|00000220| 65 65 5f 64 6f 63 5f 6d | 6e 2e 68 74 6d 6c 22 3e |ee_doc_m|n.html">|
|00000230| 0a 3c 4c 49 4e 4b 20 52 | 45 4c 3d 22 6e 65 78 74 |.<LINK R|EL="next|
|00000240| 22 20 48 52 45 46 3d 22 | 6e 6f 64 65 37 5f 6d 6e |" HREF="|node7_mn|
|00000250| 2e 68 74 6d 6c 22 3e 0a | 3c 2f 48 45 41 44 3e 0a |.html">.|</HEAD>.|
|00000260| 20 0a 3c 42 4f 44 59 20 | 62 67 63 6f 6c 6f 72 3d | .<BODY |bgcolor=|
|00000270| 22 23 66 66 66 66 66 66 | 22 20 74 65 78 74 3d 22 |"#ffffff|" text="|
|00000280| 23 30 30 30 30 30 30 22 | 20 6c 69 6e 6b 3d 22 23 |#000000"| link="#|
|00000290| 39 39 34 34 45 45 22 20 | 76 6c 69 6e 6b 3d 22 23 |9944EE" |vlink="#|
|000002a0| 30 30 30 30 66 66 22 20 | 61 6c 69 6e 6b 3d 22 23 |0000ff" |alink="#|
|000002b0| 30 30 66 66 30 30 22 3e | 0a 0a 3c 48 31 3e 3c 41 |00ff00">|..<H1><A|
|000002c0| 20 49 44 3d 22 53 45 43 | 54 49 4f 4e 30 30 30 36 | ID="SEC|TION0006|
|000002d0| 30 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |00000000|00000000|
|000002e0| 22 3e 0a 54 68 65 20 69 | 6e 74 65 72 6e 61 6c 20 |">.The i|nternal |
|000002f0| 72 65 70 72 65 73 65 6e | 74 61 74 69 6f 6e 3c 2f |represen|tation</|
|00000300| 41 3e 0a 3c 2f 48 31 3e | 20 20 20 20 20 20 20 20 |A>.</H1>| |
|00000310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000320| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000330| 20 20 20 0a 0a 3c 50 3e | 0a 47 69 76 65 6e 20 61 | ..<P>|.Given a|
|00000340| 20 74 72 65 65 2c 20 74 | 68 65 20 63 6f 72 72 65 | tree, t|he corre|
|00000350| 73 70 6f 6e 64 69 6e 67 | 20 54 3c 53 4d 41 4c 4c |sponding| T<SMALL|
|00000360| 3e 45 3c 2f 53 4d 41 4c | 4c 3e 58 74 72 65 65 20 |>E</SMAL|L>Xtree |
|00000370| 69 73 20 61 20 62 6f 78 | 20 63 6f 6e 74 61 69 6e |is a box| contain|
|00000380| 69 6e 67 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ing | |
|00000390| 20 20 20 20 20 0a 74 68 | 65 20 60 60 64 72 61 77 | .th|e ``draw|
|000003a0| 69 6e 67 27 27 20 6f 66 | 20 74 68 65 20 74 72 65 |ing'' of| the tre|
|000003b0| 65 2c 20 74 6f 67 65 74 | 68 65 72 20 77 69 74 68 |e, toget|her with|
|000003c0| 20 73 6f 6d 65 20 61 64 | 64 69 74 69 6f 6e 61 6c | some ad|ditional|
|000003d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000003e0| 20 20 20 20 20 20 0a 69 | 6e 66 6f 72 6d 61 74 69 | .i|nformati|
|000003f0| 6f 6e 20 61 62 6f 75 74 | 20 74 68 65 20 63 6f 6e |on about| the con|
|00000400| 74 6f 75 72 20 6f 66 20 | 74 68 65 20 74 72 65 65 |tour of |the tree|
|00000410| 2e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00000420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|00000450| 54 68 65 20 72 65 66 65 | 72 65 6e 63 65 20 70 6f |The refe|rence po|
|00000460| 69 6e 74 20 6f 66 20 61 | 20 54 3c 53 4d 41 4c 4c |int of a| T<SMALL|
|00000470| 3e 45 3c 2f 53 4d 41 4c | 4c 3e 58 74 72 65 65 2d |>E</SMAL|L>Xtree-|
|00000480| 62 6f 78 20 69 73 20 61 | 6c 77 61 79 73 20 69 6e |box is a|lways in|
|00000490| 20 74 68 65 20 72 6f 6f | 74 20 6f 66 20 74 68 65 | the roo|t of the|
|000004a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 0a 74 72 65 | | .tre|
|000004b0| 65 2e 20 54 68 65 20 68 | 65 69 67 68 74 2c 20 64 |e. The h|eight, d|
|000004c0| 65 70 74 68 2c 20 61 6e | 64 20 77 69 64 74 68 20 |epth, an|d width |
|000004d0| 6f 66 20 74 68 65 20 62 | 6f 78 20 6f 66 20 61 20 |of the b|ox of a |
|000004e0| 54 3c 53 4d 41 4c 4c 3e | 45 3c 2f 53 4d 41 4c 4c |T<SMALL>|E</SMALL|
|000004f0| 3e 58 74 72 65 65 20 61 | 72 65 20 20 20 20 20 20 |>Xtree a|re |
|00000500| 20 20 20 20 20 20 20 20 | 20 0a 6f 66 20 6e 6f 20 | | .of no |
|00000510| 69 6d 70 6f 72 74 61 6e | 63 65 20 69 6e 20 74 68 |importan|ce in th|
|00000520| 69 73 20 63 6f 6e 74 65 | 78 74 2e 20 20 20 20 20 |is conte|xt. |
|00000530| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000540| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000550| 20 20 20 20 20 20 20 20 | 20 20 0a 0a 3c 50 3e 0a | | ..<P>.|
|00000560| 54 68 65 20 61 64 64 69 | 74 69 6f 6e 61 6c 20 69 |The addi|tional i|
|00000570| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|00000580| 20 74 68 65 20 63 6f 6e | 74 6f 75 72 20 6f 66 20 | the con|tour of |
|00000590| 74 68 65 20 74 72 65 65 | 20 69 73 20 73 74 6f 72 |the tree| is stor|
|000005a0| 65 64 20 69 6e 20 73 6f | 6d 65 20 20 20 20 20 20 |ed in so|me |
|000005b0| 0a 72 65 67 69 73 74 65 | 72 73 20 66 6f 72 20 6e |.registe|rs for n|
|000005c0| 75 6d 62 65 72 73 20 61 | 6e 64 20 64 69 6d 65 6e |umbers a|nd dimen|
|000005d0| 73 69 6f 6e 73 20 61 6e | 64 20 20 20 20 20 20 20 |sions an|d |
|000005e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000600| 20 0a 69 73 20 6e 65 65 | 64 65 64 20 69 6e 20 6f | .is nee|ded in o|
|00000610| 72 64 65 72 20 74 6f 20 | 70 75 74 20 73 75 62 74 |rder to |put subt|
|00000620| 72 65 65 73 20 74 6f 67 | 65 74 68 65 72 20 74 6f |rees tog|ether to|
|00000630| 20 66 6f 72 6d 20 61 20 | 6c 61 72 67 65 72 20 74 | form a |larger t|
|00000640| 72 65 65 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |ree. | |
|00000650| 20 20 0a 3c 49 3e 6c 6f | 66 66 3c 2f 49 3e 20 69 | .<I>lo|ff</I> i|
|00000660| 73 20 61 6e 20 61 72 72 | 61 79 20 6f 66 20 64 69 |s an arr|ay of di|
|00000670| 6d 65 6e 73 69 6f 6e 73 | 20 77 68 69 63 68 20 63 |mensions| which c|
|00000680| 6f 6e 74 61 69 6e 73 20 | 66 6f 72 20 65 61 63 68 |ontains |for each|
|00000690| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006a0| 20 20 20 20 0a 6c 65 76 | 65 6c 20 6f 66 20 74 68 | .lev|el of th|
|000006b0| 65 20 74 72 65 65 20 74 | 68 65 20 68 6f 72 69 7a |e tree t|he horiz|
|000006c0| 6f 6e 74 61 6c 20 6f 66 | 66 73 65 74 20 62 65 74 |ontal of|fset bet|
|000006d0| 77 65 65 6e 20 74 68 65 | 20 20 20 20 20 20 20 20 |ween the| |
|000006e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006f0| 20 20 20 20 20 0a 6c 65 | 66 74 20 65 6e 64 20 6f | .le|ft end o|
|00000700| 66 20 74 68 65 20 20 20 | 20 20 20 20 20 20 20 20 |f the | |
|00000710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000730| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000740| 20 20 20 20 20 20 0a 6c | 65 66 74 6d 6f 73 74 20 | .l|eftmost |
|00000750| 6e 6f 64 65 20 61 74 20 | 74 68 65 20 63 75 72 72 |node at |the curr|
|00000760| 65 6e 74 20 6c 65 76 65 | 6c 20 61 6e 64 20 74 68 |ent leve|l and th|
|00000770| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|00000780| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000790| 20 20 20 20 20 20 20 0a | 6c 65 66 74 20 65 6e 64 | .|left end|
|000007a0| 20 6f 66 20 74 68 65 20 | 6c 65 66 74 6d 6f 73 74 | of the |leftmost|
|000007b0| 20 6e 6f 64 65 20 61 74 | 20 20 20 20 20 20 20 20 | node at| |
|000007c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007e0| 20 20 20 20 20 20 20 20 | 0a 74 68 65 20 6e 65 78 | |.the nex|
|000007f0| 74 20 6c 65 76 65 6c 2e | 20 20 20 20 20 20 20 20 |t level.| |
|00000800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000810| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000830| 20 20 20 20 20 20 20 20 | 20 0a 3c 49 3e 6c 6d 6f | | .<I>lmo|
|00000840| 66 66 3c 2f 49 3e 20 68 | 6f 6c 64 73 20 74 68 65 |ff</I> h|olds the|
|00000850| 20 68 6f 72 69 7a 6f 6e | 74 61 6c 20 6f 66 66 73 | horizon|tal offs|
|00000860| 65 74 20 62 65 74 77 65 | 65 6e 20 74 68 65 20 72 |et betwe|en the r|
|00000870| 6f 6f 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |oot | |
|00000880| 20 20 20 20 20 20 20 20 | 20 20 20 0a 61 6e 64 20 | | .and |
|00000890| 74 68 65 20 6c 65 66 74 | 6d 6f 73 74 20 6e 6f 64 |the left|most nod|
|000008a0| 65 20 6f 66 20 74 68 65 | 20 77 68 6f 6c 65 20 74 |e of the| whole t|
|000008b0| 72 65 65 2e 20 3c 49 3e | 6c 62 6f 66 66 3c 2f 49 |ree. <I>|lboff</I|
|000008c0| 3e 20 68 6f 6c 64 73 20 | 74 68 65 20 20 20 20 20 |> holds |the |
|000008d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 68 6f | | .ho|
|000008e0| 72 69 7a 6f 6e 74 61 6c | 20 6f 66 66 73 65 74 20 |rizontal| offset |
|000008f0| 62 65 74 77 65 65 6e 20 | 74 68 65 20 72 6f 6f 74 |between |the root|
|00000900| 20 61 6e 64 20 74 68 65 | 20 6c 65 66 74 6d 6f 73 | and the| leftmos|
|00000910| 74 20 6e 6f 64 65 20 61 | 74 20 20 20 20 20 20 20 |t node a|t |
|00000920| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 74 | | .t|
|00000930| 68 65 20 62 6f 74 74 6f | 6d 20 6c 65 76 65 6c 20 |he botto|m level |
|00000940| 6f 66 20 74 68 65 20 74 | 72 65 65 2e 20 20 20 20 |of the t|ree. |
|00000950| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000970| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|00000980| 46 69 6e 61 6c 6c 79 2c | 20 3c 49 3e 6c 74 6f 70 |Finally,| <I>ltop|
|00000990| 3c 2f 49 3e 20 68 6f 6c | 64 73 20 74 68 65 20 64 |</I> hol|ds the d|
|000009a0| 69 73 74 61 6e 63 65 20 | 62 65 74 77 65 65 6e 20 |istance |between |
|000009b0| 74 68 65 20 72 65 66 65 | 72 65 6e 63 65 20 70 6f |the refe|rence po|
|000009c0| 69 6e 74 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |int | |
|000009d0| 20 0a 6f 66 20 74 68 65 | 20 74 72 65 65 20 61 6e | .of the| tree an|
|000009e0| 64 20 74 68 65 20 6c 65 | 66 74 6d 6f 73 74 20 65 |d the le|ftmost e|
|000009f0| 6e 64 20 6f 66 20 74 68 | 65 20 72 6f 6f 74 2e 20 |nd of th|e root. |
|00000a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a20| 20 20 0a 54 68 65 20 73 | 61 6d 65 20 69 73 20 74 | .The s|ame is t|
|00000a30| 72 75 65 20 66 6f 72 20 | 20 20 20 20 20 20 20 20 |rue for | |
|00000a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a70| 20 20 20 0a 3c 49 3e 72 | 6f 66 66 3c 2f 49 3e 2c | .<I>r|off</I>,|
|00000a80| 20 3c 49 3e 72 6d 6f 66 | 66 3c 2f 49 3e 2c 20 3c | <I>rmof|f</I>, <|
|00000a90| 49 3e 72 62 6f 66 66 3c | 2f 49 3e 2c 20 61 6e 64 |I>rboff<|/I>, and|
|00000aa0| 20 3c 49 3e 72 74 6f 70 | 3c 2f 49 3e 3b 20 6a 75 | <I>rtop|</I>; ju|
|00000ab0| 73 74 20 72 65 70 6c 61 | 63 65 20 20 20 20 20 20 |st repla|ce |
|00000ac0| 20 20 20 20 20 20 20 20 | 0a 60 60 6c 65 66 74 27 | |.``left'|
|00000ad0| 27 20 62 79 20 60 60 72 | 69 67 68 74 27 27 2e 20 |' by ``r|ight''. |
|00000ae0| 46 69 6e 61 6c 6c 79 2c | 20 20 20 20 20 20 20 20 |Finally,| |
|00000af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000b10| 20 20 20 20 20 20 20 20 | 20 0a 3c 49 3e 68 65 69 | | .<I>hei|
|00000b20| 67 68 74 3c 2f 49 3e 20 | 68 6f 6c 64 73 20 74 68 |ght</I> |holds th|
|00000b30| 65 20 68 65 69 67 68 74 | 20 6f 66 20 74 68 65 20 |e height| of the |
|00000b40| 74 72 65 65 2c 20 61 6e | 64 20 3c 49 3e 74 79 70 |tree, an|d <I>typ|
|00000b50| 65 3c 2f 49 3e 20 68 6f | 6c 64 73 20 74 68 65 20 |e</I> ho|lds the |
|00000b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 0a 67 65 6f | | .geo|
|00000b70| 6d 65 74 72 69 63 20 73 | 68 61 70 65 20 6f 66 20 |metric s|hape of |
|00000b80| 74 68 65 20 72 6f 6f 74 | 20 6f 66 20 74 68 65 20 |the root| of the |
|00000b90| 74 72 65 65 2e 20 46 69 | 67 75 72 65 26 6e 62 73 |tree. Fi|gure&nbs|
|00000ba0| 70 3b 3c 41 20 48 52 45 | 46 3d 22 6e 6f 64 65 36 |p;<A HRE|F="node6|
|00000bb0| 5f 63 74 2e 68 74 6d 6c | 23 54 65 58 74 72 65 65 |_ct.html|#TeXtree|
|00000bc0| 22 3e 3c 49 4d 47 20 20 | 41 4c 54 3d 22 5b 2a 5d |"><IMG |ALT="[*]|
|00000bd0| 22 20 53 52 43 3d 22 63 | 72 6f 73 73 72 65 66 2e |" SRC="c|rossref.|
|00000be0| 70 6e 67 22 3e 3c 2f 41 | 3e 20 73 68 6f 77 73 20 |png"></A|> shows |
|00000bf0| 61 6e 20 65 78 61 6d 70 | 6c 65 20 54 3c 53 4d 41 |an examp|le T<SMA|
|00000c00| 4c 4c 3e 45 3c 2f 53 4d | 41 4c 4c 3e 58 74 72 65 |LL>E</SM|ALL>Xtre|
|00000c10| 65 2c 0a 69 2e 65 2e 20 | 61 20 74 72 65 65 20 64 |e,.i.e. |a tree d|
|00000c20| 72 61 77 69 6e 67 20 61 | 6e 64 20 74 68 65 20 63 |rawing a|nd the c|
|00000c30| 6f 72 72 65 73 70 6f 6e | 64 69 6e 67 20 61 64 64 |orrespon|ding add|
|00000c40| 69 74 69 6f 6e 61 6c 20 | 69 6e 66 6f 72 6d 61 74 |itional |informat|
|00000c50| 69 6f 6e 2e 0a 0a 3c 50 | 3e 0a 0a 3c 44 49 56 20 |ion...<P|>..<DIV |
|00000c60| 63 6c 61 73 73 3d 22 43 | 45 4e 54 45 52 22 3e 3c |class="C|ENTER"><|
|00000c70| 41 20 49 44 3d 22 54 65 | 58 74 72 65 65 22 3e 3c |A ID="Te|Xtree"><|
|00000c80| 2f 41 3e 3c 41 20 49 44 | 3d 22 37 31 31 22 3e 3c |/A><A ID|="711"><|
|00000c90| 2f 41 3e 0a 3c 54 41 42 | 4c 45 3e 0a 3c 43 41 50 |/A>.<TAB|LE>.<CAP|
|00000ca0| 54 49 4f 4e 20 63 6c 61 | 73 73 3d 22 42 4f 54 54 |TION cla|ss="BOTT|
|00000cb0| 4f 4d 22 3e 3c 53 54 52 | 4f 4e 47 3e 46 69 67 75 |OM"><STR|ONG>Figu|
|00000cc0| 72 65 3a 3c 2f 53 54 52 | 4f 4e 47 3e 0a 41 20 54 |re:</STR|ONG>.A T|
|00000cd0| 3c 53 4d 41 4c 4c 3e 45 | 3c 2f 53 4d 41 4c 4c 3e |<SMALL>E|</SMALL>|
|00000ce0| 58 74 72 65 65 20 63 6f | 6e 73 69 73 74 73 20 6f |Xtree co|nsists o|
|00000cf0| 66 20 74 68 65 20 64 72 | 61 77 69 6e 67 20 6f 66 |f the dr|awing of|
|00000d00| 20 74 68 65 20 74 72 65 | 65 20 61 6e 64 20 74 68 | the tre|e and th|
|00000d10| 65 0a 61 64 64 69 74 69 | 6f 6e 61 6c 20 69 6e 66 |e.additi|onal inf|
|00000d20| 6f 72 6d 61 74 69 6f 6e | 2e 20 54 68 65 20 77 69 |ormation|. The wi|
|00000d30| 64 74 68 20 6f 66 20 74 | 68 65 20 64 6f 74 73 20 |dth of t|he dots |
|00000d40| 69 73 20 34 70 74 2c 20 | 74 68 65 20 6d 69 6e 69 |is 4pt, |the mini|
|00000d50| 6d 61 6c 20 73 65 70 61 | 72 61 74 69 6f 6e 20 62 |mal sepa|ration b|
|00000d60| 65 74 77 65 65 6e 0a 61 | 64 6a 61 63 65 6e 74 20 |etween.a|djacent |
|00000d70| 6e 6f 64 65 73 20 69 73 | 20 31 36 70 74 2c 20 6d |nodes is| 16pt, m|
|00000d80| 61 6b 69 6e 67 20 66 6f | 72 20 61 20 64 69 73 74 |aking fo|r a dist|
|00000d90| 61 6e 63 65 20 6f 66 20 | 32 30 70 74 20 63 65 6e |ance of |20pt cen|
|00000da0| 74 65 72 20 74 6f 20 63 | 65 6e 74 65 72 2e 0a 54 |ter to c|enter..T|
|00000db0| 68 65 20 6c 65 6e 67 74 | 68 20 6f 66 20 74 68 65 |he lengt|h of the|
|00000dc0| 20 73 6d 61 6c 6c 20 72 | 75 6c 65 20 6c 61 62 65 | small r|ule labe|
|00000dd0| 6c 6c 69 6e 67 20 6f 6e | 65 20 6f 66 20 74 68 65 |lling on|e of the|
|00000de0| 20 6e 6f 64 65 73 20 69 | 73 20 35 70 74 2e 20 54 | nodes i|s 5pt. T|
|00000df0| 68 65 20 63 6f 6c 75 6d | 6e 20 6c 65 66 74 20 28 |he colum|n left (|
|00000e00| 72 69 67 68 74 29 0a 6f | 66 20 74 68 65 20 74 72 |right).o|f the tr|
|00000e10| 65 65 20 64 72 61 77 69 | 6e 67 20 69 73 20 74 68 |ee drawi|ng is th|
|00000e20| 65 20 61 72 72 61 79 20 | 3c 49 3e 6c 6f 66 66 3c |e array |<I>loff<|
|00000e30| 2f 49 3e 20 28 3c 49 3e | 72 6f 66 66 3c 2f 49 3e |/I> (<I>|roff</I>|
|00000e40| 29 2c 0a 64 65 73 63 72 | 69 62 69 6e 67 20 74 68 |),.descr|ibing th|
|00000e50| 65 20 6c 65 66 74 20 28 | 72 69 67 68 74 29 20 63 |e left (|right) c|
|00000e60| 6f 6e 74 6f 75 72 20 6f | 66 20 74 68 65 20 74 72 |ontour o|f the tr|
|00000e70| 65 65 2e 20 41 74 20 65 | 61 63 68 20 6c 65 76 65 |ee. At e|ach leve|
|00000e80| 6c 2c 0a 74 68 65 20 64 | 69 6d 65 6e 73 69 6f 6e |l,.the d|imension|
|00000e90| 20 67 69 76 65 6e 20 69 | 73 20 74 68 65 20 68 6f | given i|s the ho|
|00000ea0| 72 69 7a 6f 6e 74 61 6c | 0a 6f 66 66 73 65 74 20 |rizontal|.offset |
|00000eb0| 62 65 74 77 65 65 6e 20 | 74 68 65 20 62 6f 72 64 |between |the bord|
|00000ec0| 65 72 20 61 74 20 74 68 | 65 20 63 75 72 72 65 6e |er at th|e curren|
|00000ed0| 74 20 61 6e 64 20 61 74 | 20 74 68 65 20 6e 65 78 |t and at| the nex|
|00000ee0| 74 20 6c 65 76 65 6c 2e | 20 54 68 65 20 6f 66 66 |t level.| The off|
|00000ef0| 73 65 74 20 62 65 74 77 | 65 65 6e 0a 74 68 65 20 |set betw|een.the |
|00000f00| 6c 65 66 74 20 62 6f 72 | 64 65 72 20 6f 66 20 74 |left bor|der of t|
|00000f10| 68 65 20 72 6f 6f 74 20 | 6e 6f 64 65 20 61 6e 64 |he root |node and|
|00000f20| 20 74 68 65 20 6c 65 66 | 74 6d 6f 73 74 20 6e 6f | the lef|tmost no|
|00000f30| 64 65 20 61 74 20 6c 65 | 76 65 6c 26 6e 62 73 70 |de at le|vel&nbsp|
|00000f40| 3b 31 20 69 73 20 2d 31 | 30 70 74 2c 0a 74 68 65 |;1 is -1|0pt,.the|
|00000f50| 20 6f 66 66 73 65 74 20 | 62 65 74 77 65 65 6e 20 | offset |between |
|00000f60| 74 68 65 20 72 69 67 68 | 74 20 62 6f 72 64 65 72 |the righ|t border|
|00000f70| 20 6f 66 20 74 68 65 20 | 72 6f 6f 74 20 6e 6f 64 | of the |root nod|
|00000f80| 65 20 61 6e 64 20 74 68 | 65 20 72 69 67 68 74 6d |e and th|e rightm|
|00000f90| 6f 73 74 20 6e 6f 64 65 | 20 61 74 0a 6c 65 76 65 |ost node| at.leve|
|00000fa0| 6c 26 6e 62 73 70 3b 31 | 20 69 73 20 31 35 70 74 |l&nbsp;1| is 15pt|
|00000fb0| 2c 20 65 74 63 2e 3c 2f | 43 41 50 54 49 4f 4e 3e |, etc.</|CAPTION>|
|00000fc0| 0a 3c 54 52 3e 3c 54 44 | 3e 3c 49 4d 47 0a 20 53 |.<TR><TD|><IMG. S|
|00000fd0| 54 59 4c 45 3d 22 22 20 | 53 52 43 3d 22 69 6d 67 |TYLE="" |SRC="img|
|00000fe0| 35 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 5c 62 65 |5.png". |ALT="\be|
|00000ff0| 67 69 6e 7b 66 69 67 75 | 72 65 7d 5c 76 73 70 61 |gin{figu|re}\vspa|
|00001000| 63 65 7b 31 5c 62 61 73 | 65 6c 69 6e 65 73 6b 69 |ce{1\bas|elineski|
|00001010| 70 7d 5c 63 65 6e 74 65 | 72 69 6e 67 0a 5c 62 65 |p}\cente|ring.\be|
|00001020| 67 69 6e 7b 54 72 65 65 | 7d 0a 5c 6e 6f 64 65 7b |gin{Tree|}.\node{|
|00001030| 5c 65 78 74 65 72 6e 61 | 6c 5c 74 79 70 2e 2e 2e |\externa|l\typ...|
|00001040| 0a 2e 2e 2e 6d 6f 66 66 | 3a 7e 32 30 70 74 2c 20 |....moff|:~20pt, |
|00001050| 6c 62 6f 66 66 3a 7e 31 | 30 70 74 2c 0a 72 62 6f |lboff:~1|0pt,.rbo|
|00001060| 66 66 3a 7e 31 30 70 74 | 2e 0a 5c 70 61 72 0a 5c |ff:~10pt|..\par.\|
|00001070| 76 73 70 61 63 65 7b 31 | 5c 62 61 73 65 6c 69 6e |vspace{1|\baselin|
|00001080| 65 73 6b 69 70 7d 5c 65 | 6e 64 7b 66 69 67 75 72 |eskip}\e|nd{figur|
|00001090| 65 7d 22 3e 3c 2f 54 44 | 3e 3c 2f 54 52 3e 0a 3c |e}"></TD|></TR>.<|
|000010a0| 2f 54 41 42 4c 45 3e 0a | 3c 2f 44 49 56 3e 0a 0a |/TABLE>.|</DIV>..|
|000010b0| 3c 50 3e 0a 47 69 76 65 | 6e 20 74 77 6f 20 54 3c |<P>.Give|n two T<|
|000010c0| 53 4d 41 4c 4c 3e 45 3c | 2f 53 4d 41 4c 4c 3e 58 |SMALL>E<|/SMALL>X|
|000010d0| 74 72 65 65 73 20 3c 49 | 3e 41 3c 2f 49 3e 20 61 |trees <I|>A</I> a|
|000010e0| 6e 64 20 3c 49 3e 42 3c | 2f 49 3e 2c 20 20 20 20 |nd <I>B<|/I>, |
|000010f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001110| 20 20 0a 68 6f 77 20 63 | 61 6e 20 61 20 6e 65 77 | .how c|an a new|
|00001120| 20 54 3c 53 4d 41 4c 4c | 3e 45 3c 2f 53 4d 41 4c | T<SMALL|>E</SMAL|
|00001130| 4c 3e 58 74 72 65 65 20 | 3c 49 3e 43 3c 2f 49 3e |L>Xtree |<I>C</I>|
|00001140| 20 62 65 20 62 75 69 6c | 74 20 74 68 61 74 20 20 | be buil|t that |
|00001150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001170| 0a 63 6f 6e 73 69 73 74 | 73 20 6f 66 20 61 20 6e |.consist|s of a n|
|00001180| 65 77 20 72 6f 6f 74 20 | 61 6e 64 20 68 61 73 20 |ew root |and has |
|00001190| 3c 49 3e 41 3c 2f 49 3e | 20 61 6e 64 20 3c 49 3e |<I>A</I>| and <I>|
|000011a0| 42 3c 2f 49 3e 20 61 73 | 20 73 75 62 74 72 65 65 |B</I> as| subtree|
|000011b0| 73 3f 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |s? | |
|000011c0| 20 20 20 0a 41 6e 20 65 | 78 61 6d 70 6c 65 20 69 | .An e|xample i|
|000011d0| 73 20 67 69 76 65 6e 20 | 69 6e 20 46 69 67 75 72 |s given |in Figur|
|000011e0| 65 26 6e 62 73 70 3b 3c | 41 20 48 52 45 46 3d 22 |e&nbsp;<|A HREF="|
|000011f0| 6e 6f 64 65 36 5f 63 74 | 2e 68 74 6d 6c 23 41 64 |node6_ct|.html#Ad|
|00001200| 64 49 6e 66 6f 22 3e 3c | 49 4d 47 20 20 41 4c 54 |dInfo"><|IMG ALT|
|00001210| 3d 22 5b 2a 5d 22 20 53 | 52 43 3d 22 63 72 6f 73 |="[*]" S|RC="cros|
|00001220| 73 72 65 66 2e 70 6e 67 | 22 3e 3c 2f 41 3e 2e 20 |sref.png|"></A>. |
|00001230| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001240| 20 20 20 20 20 20 20 0a | 0a 3c 50 3e 0a 0a 3c 44 | .|.<P>..<D|
|00001250| 49 56 20 63 6c 61 73 73 | 3d 22 43 45 4e 54 45 52 |IV class|="CENTER|
|00001260| 22 3e 3c 41 20 49 44 3d | 22 41 64 64 49 6e 66 6f |"><A ID=|"AddInfo|
|00001270| 22 3e 3c 2f 41 3e 3c 41 | 20 49 44 3d 22 37 32 36 |"></A><A| ID="726|
|00001280| 22 3e 3c 2f 41 3e 0a 3c | 54 41 42 4c 45 3e 0a 3c |"></A>.<|TABLE>.<|
|00001290| 43 41 50 54 49 4f 4e 20 | 63 6c 61 73 73 3d 22 42 |CAPTION |class="B|
|000012a0| 4f 54 54 4f 4d 22 3e 3c | 53 54 52 4f 4e 47 3e 46 |OTTOM"><|STRONG>F|
|000012b0| 69 67 75 72 65 3a 3c 2f | 53 54 52 4f 4e 47 3e 0a |igure:</|STRONG>.|
|000012c0| 54 68 65 20 54 3c 53 4d | 41 4c 4c 3e 45 3c 2f 53 |The T<SM|ALL>E</S|
|000012d0| 4d 41 4c 4c 3e 58 74 72 | 65 65 73 20 3c 49 3e 41 |MALL>Xtr|ees <I>A|
|000012e0| 3c 2f 49 3e 20 61 6e 64 | 26 6e 62 73 70 3b 3c 49 |</I> and|&nbsp;<I|
|000012f0| 3e 42 3c 2f 49 3e 20 61 | 72 65 20 63 6f 6d 62 69 |>B</I> a|re combi|
|00001300| 6e 65 64 20 74 6f 20 66 | 6f 72 6d 20 74 68 65 0a |ned to f|orm the.|
|00001310| 6c 61 72 67 65 72 20 54 | 3c 53 4d 41 4c 4c 3e 45 |larger T|<SMALL>E|
|00001320| 3c 2f 53 4d 41 4c 4c 3e | 58 74 72 65 65 26 6e 62 |</SMALL>|Xtree&nb|
|00001330| 73 70 3b 3c 49 3e 43 3c | 2f 49 3e 2e 20 54 68 65 |sp;<I>C<|/I>. The|
|00001340| 20 73 6d 61 6c 6c 20 74 | 61 62 6c 65 20 67 69 76 | small t|able giv|
|00001350| 65 73 20 74 68 65 20 0a | 68 69 73 74 6f 72 79 20 |es the .|history |
|00001360| 6f 66 20 63 6f 6d 70 75 | 74 61 74 69 6f 6e 20 66 |of compu|tation f|
|00001370| 6f 72 20 3c 49 3e 74 6f | 74 73 65 70 3c 2f 49 3e |or <I>to|tsep</I>|
|00001380| 20 61 6e 64 20 3c 49 3e | 63 75 72 72 73 65 70 3c | and <I>|currsep<|
|00001390| 2f 49 3e 2e 3c 2f 43 41 | 50 54 49 4f 4e 3e 0a 3c |/I>.</CA|PTION>.<|
|000013a0| 54 52 3e 3c 54 44 3e 3c | 49 4d 47 0a 20 53 54 59 |TR><TD><|IMG. STY|
|000013b0| 4c 45 3d 22 22 20 53 52 | 43 3d 22 69 6d 67 36 2e |LE="" SR|C="img6.|
|000013c0| 70 6e 67 22 0a 20 41 4c | 54 3d 22 5c 62 65 67 69 |png". AL|T="\begi|
|000013d0| 6e 7b 66 69 67 75 72 65 | 7d 5c 76 73 70 61 63 65 |n{figure|}\vspace|
|000013e0| 7b 31 5c 62 61 73 65 6c | 69 6e 65 73 6b 69 70 7d |{1\basel|ineskip}|
|000013f0| 5c 63 65 6e 74 65 72 69 | 6e 67 0a 5c 62 65 67 69 |\centeri|ng.\begi|
|00001400| 6e 7b 54 72 65 65 7d 0a | 5c 6e 6f 64 65 7b 5c 65 |n{Tree}.|\node{\e|
|00001410| 78 74 65 72 6e 61 6c 5c | 74 79 70 2e 2e 2e 0a 2e |xternal\|typ.....|
|00001420| 2e 2e 74 5c 5c 0a 33 26 | 61 6d 70 3b 34 30 70 74 |..t\\.3&|amp;40pt|
|00001430| 26 61 6d 70 3b 31 36 70 | 74 5c 5c 0a 5c 68 6c 69 |&amp;16p|t\\.\hli|
|00001440| 6e 65 0a 5c 65 6e 64 7b | 74 61 62 75 6c 61 72 7d |ne.\end{|tabular}|
|00001450| 0a 5c 76 73 70 61 63 65 | 7b 31 5c 62 61 73 65 6c |.\vspace|{1\basel|
|00001460| 69 6e 65 73 6b 69 70 7d | 5c 65 6e 64 7b 66 69 67 |ineskip}|\end{fig|
|00001470| 75 72 65 7d 22 3e 3c 2f | 54 44 3e 3c 2f 54 52 3e |ure}"></|TD></TR>|
|00001480| 0a 3c 2f 54 41 42 4c 45 | 3e 0a 3c 2f 44 49 56 3e |.</TABLE|>.</DIV>|
|00001490| 0a 0a 3c 50 3e 0a 46 69 | 72 73 74 20 77 65 20 64 |..<P>.Fi|rst we d|
|000014a0| 65 74 65 72 6d 69 6e 65 | 20 77 68 69 63 68 20 74 |etermine| which t|
|000014b0| 72 65 65 20 69 73 20 68 | 69 67 68 65 72 3b 20 74 |ree is h|igher; t|
|000014c0| 68 69 73 20 69 73 20 20 | 20 20 20 20 20 20 20 20 |his is | |
|000014d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000014e0| 20 20 20 20 20 20 0a 3c | 49 3e 42 3c 2f 49 3e 20 | .<|I>B</I> |
|000014f0| 69 6e 20 74 68 65 20 65 | 78 61 6d 70 6c 65 2e 20 |in the e|xample. |
|00001500| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001520| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001530| 20 20 20 20 20 20 20 20 | 0a 54 68 65 6e 20 77 65 | |.Then we|
|00001540| 20 68 61 76 65 20 74 6f | 20 63 6f 6d 70 75 74 65 | have to| compute|
|00001550| 20 74 68 65 20 6d 69 6e | 69 6d 61 6c 20 64 69 73 | the min|imal dis|
|00001560| 74 61 6e 63 65 20 20 20 | 20 20 20 20 20 20 20 20 |tance | |
|00001570| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001580| 20 20 20 20 20 20 20 20 | 20 0a 62 65 74 77 65 65 | | .betwee|
|00001590| 6e 20 74 68 65 20 72 6f | 6f 74 73 20 6f 66 20 3c |n the ro|ots of <|
|000015a0| 49 3e 41 3c 2f 49 3e 20 | 61 6e 64 20 3c 49 3e 42 |I>A</I> |and <I>B|
|000015b0| 3c 2f 49 3e 2c 20 73 75 | 63 68 20 74 68 61 74 20 |</I>, su|ch that |
|000015c0| 61 74 20 61 6c 6c 20 6c | 65 76 65 6c 73 20 20 20 |at all l|evels |
|000015d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 0a 6f 66 20 | | .of |
|000015e0| 74 68 65 20 74 72 65 65 | 73 20 74 68 65 72 65 20 |the tree|s there |
|000015f0| 69 73 20 66 72 65 65 20 | 73 70 61 63 65 20 6f 66 |is free |space of|
|00001600| 20 61 74 20 6c 65 61 73 | 74 20 3c 49 3e 6d 69 6e | at leas|t <I>min|
|00001610| 73 65 70 3c 2f 49 3e 20 | 62 65 74 77 65 65 6e 20 |sep</I> |between |
|00001620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 74 | | .t|
|00001630| 68 65 20 74 72 65 65 73 | 20 77 68 65 6e 20 74 68 |he trees| when th|
|00001640| 65 79 20 61 72 65 20 64 | 72 61 77 6e 20 73 69 64 |ey are d|rawn sid|
|00001650| 65 20 62 79 20 73 69 64 | 65 2e 20 20 20 20 20 20 |e by sid|e. |
|00001660| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001670| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|00001680| 46 6f 72 20 74 68 69 73 | 20 70 75 72 70 6f 73 65 |For this| purpose|
|00001690| 20 77 65 20 6b 65 65 70 | 20 74 72 61 63 6b 20 6f | we keep| track o|
|000016a0| 66 20 74 77 6f 20 76 61 | 6c 75 65 73 2c 20 3c 49 |f two va|lues, <I|
|000016b0| 3e 74 6f 74 73 65 70 3c | 2f 49 3e 20 61 6e 64 20 |>totsep<|/I> and |
|000016c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000016d0| 20 0a 3c 49 3e 63 75 72 | 72 73 65 70 3c 2f 49 3e | .<I>cur|rsep</I>|
|000016e0| 2e 20 54 68 65 20 76 61 | 72 69 61 62 6c 65 73 20 |. The va|riables |
|000016f0| 3c 49 3e 74 6f 74 73 65 | 70 3c 2f 49 3e 20 61 6e |<I>totse|p</I> an|
|00001700| 64 20 3c 49 3e 63 75 72 | 72 73 65 70 3c 2f 49 3e |d <I>cur|rsep</I>|
|00001710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001720| 20 20 20 20 20 0a 68 6f | 6c 64 20 74 68 65 20 74 | .ho|ld the t|
|00001730| 6f 74 61 6c 20 64 69 73 | 74 61 6e 63 65 20 62 65 |otal dis|tance be|
|00001740| 74 77 65 65 6e 20 74 68 | 65 20 72 6f 6f 74 73 20 |tween th|e roots |
|00001750| 61 6e 64 20 74 68 65 20 | 64 69 73 74 61 6e 63 65 |and the |distance|
|00001760| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001770| 20 20 20 20 20 20 0a 62 | 65 74 77 65 65 6e 20 74 | .b|etween t|
|00001780| 68 65 20 72 69 67 68 74 | 6d 6f 73 74 20 6e 6f 64 |he right|most nod|
|00001790| 65 20 6f 66 20 3c 49 3e | 41 3c 2f 49 3e 20 61 6e |e of <I>|A</I> an|
|000017a0| 64 20 74 68 65 20 6c 65 | 66 74 6d 6f 73 74 20 6e |d the le|ftmost n|
|000017b0| 6f 64 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ode | |
|000017c0| 20 20 20 20 20 20 20 20 | 0a 6f 66 20 3c 49 3e 42 | |.of <I>B|
|000017d0| 3c 2f 49 3e 20 61 74 20 | 74 68 65 20 63 75 72 72 |</I> at |the curr|
|000017e0| 65 6e 74 20 6c 65 76 65 | 6c 2e 20 49 6e 20 6f 72 |ent leve|l. In or|
|000017f0| 64 65 72 20 74 6f 20 63 | 61 6c 63 75 6c 61 74 65 |der to c|alculate|
|00001800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001810| 20 20 20 20 20 20 20 20 | 20 20 0a 3c 49 3e 74 6f | | .<I>to|
|00001820| 74 73 65 70 3c 2f 49 3e | 20 61 6e 64 20 3c 49 3e |tsep</I>| and <I>|
|00001830| 63 75 72 72 73 65 70 3c | 2f 49 3e 2c 20 77 65 20 |currsep<|/I>, we |
|00001840| 73 74 61 72 74 20 61 74 | 20 6c 65 76 65 6c 20 30 |start at| level 0|
|00001850| 20 61 6e 64 20 20 20 20 | 20 20 20 20 20 20 20 20 | and | |
|00001860| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 76 69 | | .vi|
|00001870| 73 69 74 20 65 61 63 68 | 20 6c 65 76 65 6c 20 6f |sit each| level o|
|00001880| 66 20 74 68 65 20 74 72 | 65 65 73 20 75 6e 74 69 |f the tr|ees unti|
|00001890| 6c 20 77 65 20 72 65 61 | 63 68 20 74 68 65 20 62 |l we rea|ch the b|
|000018a0| 6f 74 74 6f 6d 20 6c 65 | 76 65 6c 20 20 20 20 20 |ottom le|vel |
|000018b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 6f | | .o|
|000018c0| 66 20 74 68 65 20 73 6d | 61 6c 6c 65 72 20 74 72 |f the sm|aller tr|
|000018d0| 65 65 3b 20 74 68 69 73 | 20 69 73 20 3c 49 3e 41 |ee; this| is <I>A|
|000018e0| 3c 2f 49 3e 20 69 6e 20 | 6f 75 72 20 65 78 61 6d |</I> in |our exam|
|000018f0| 70 6c 65 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |ple. | |
|00001900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001910| 0a 0a 3c 50 3e 0a 41 74 | 20 6c 65 76 65 6c 20 30 |..<P>.At| level 0|
|00001920| 2c 20 74 68 65 20 64 69 | 73 74 61 6e 63 65 20 62 |, the di|stance b|
|00001930| 65 74 77 65 65 6e 20 74 | 68 65 20 72 6f 6f 74 73 |etween t|he roots|
|00001940| 20 6f 66 20 3c 49 3e 41 | 3c 2f 49 3e 20 61 6e 64 | of <I>A|</I> and|
|00001950| 20 3c 49 3e 42 3c 2f 49 | 3e 20 20 20 20 20 20 20 | <I>B</I|> |
|00001960| 20 20 20 20 20 20 20 20 | 0a 73 68 6f 75 6c 64 20 | |.should |
|00001970| 62 65 20 61 74 20 6c 65 | 61 73 74 20 3c 49 3e 6d |be at le|ast <I>m|
|00001980| 69 6e 73 65 70 3c 2f 49 | 3e 2e 20 54 68 65 72 65 |insep</I|>. There|
|00001990| 66 6f 72 65 2c 20 77 65 | 20 73 65 74 20 20 20 20 |fore, we| set |
|000019a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000019b0| 20 20 20 20 20 20 20 20 | 20 20 0a 3c 21 2d 2d 20 | | .<!-- |
|000019c0| 4d 41 54 48 0a 20 24 7b | 5c 69 74 20 74 6f 74 73 |MATH. ${|\it tots|
|000019d0| 65 70 5c 2f 7d 3a 3d 7b | 5c 69 74 20 6d 69 6e 73 |ep\/}:={|\it mins|
|000019e0| 65 70 5c 2f 7d 20 2b 20 | 7b 5c 69 74 20 72 74 6f |ep\/} + |{\it rto|
|000019f0| 70 5c 2f 7d 28 7b 5c 69 | 74 20 41 5c 2f 7d 29 0a |p\/}({\i|t A\/}).|
|00001a00| 2b 20 7b 5c 69 74 20 6c | 74 6f 70 5c 2f 7d 28 7b |+ {\it l|top\/}({|
|00001a10| 5c 69 74 20 42 5c 2f 7d | 29 24 0a 20 2d 2d 3e 0a |\it B\/}|)$. -->.|
|00001a20| 3c 49 4d 47 0a 20 53 54 | 59 4c 45 3d 22 22 20 53 |<IMG. ST|YLE="" S|
|00001a30| 52 43 3d 22 69 6d 67 37 | 2e 70 6e 67 22 0a 20 41 |RC="img7|.png". A|
|00001a40| 4c 54 3d 22 24 5c 69 74 | 20 74 6f 74 73 65 70 5c |LT="$\it| totsep\|
|00001a50| 2f 24 22 3e 20 3a 20 3d | 20 3c 49 4d 47 0a 20 53 |/$"> : =| <IMG. S|
|00001a60| 54 59 4c 45 3d 22 22 20 | 53 52 43 3d 22 69 6d 67 |TYLE="" |SRC="img|
|00001a70| 38 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 24 5c 69 |8.png". |ALT="$\i|
|00001a80| 74 20 6d 69 6e 73 65 70 | 5c 2f 24 22 3e 20 2b 20 |t minsep|\/$"> + |
|00001a90| 3c 49 4d 47 0a 20 53 54 | 59 4c 45 3d 22 22 20 53 |<IMG. ST|YLE="" S|
|00001aa0| 52 43 3d 22 69 6d 67 39 | 2e 70 6e 67 22 0a 20 41 |RC="img9|.png". A|
|00001ab0| 4c 54 3d 22 24 5c 69 74 | 20 72 74 6f 70 5c 2f 24 |LT="$\it| rtop\/$|
|00001ac0| 22 3e 28 3c 49 4d 47 0a | 20 53 54 59 4c 45 3d 22 |">(<IMG.| STYLE="|
|00001ad0| 22 20 53 52 43 3d 22 69 | 6d 67 31 30 2e 70 6e 67 |" SRC="i|mg10.png|
|00001ae0| 22 0a 20 41 4c 54 3d 22 | 24 5c 69 74 20 41 5c 2f |". ALT="|$\it A\/|
|00001af0| 24 22 3e 29 20 2b 20 3c | 49 4d 47 0a 20 53 54 59 |$">) + <|IMG. STY|
|00001b00| 4c 45 3d 22 22 20 53 52 | 43 3d 22 69 6d 67 31 31 |LE="" SR|C="img11|
|00001b10| 2e 70 6e 67 22 0a 20 41 | 4c 54 3d 22 24 5c 69 74 |.png". A|LT="$\it|
|00001b20| 20 6c 74 6f 70 5c 2f 24 | 22 3e 28 3c 49 4d 47 0a | ltop\/$|">(<IMG.|
|00001b30| 20 53 54 59 4c 45 3d 22 | 22 20 53 52 43 3d 22 69 | STYLE="|" SRC="i|
|00001b40| 6d 67 31 32 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |mg12.png|". ALT="|
|00001b50| 24 5c 69 74 20 42 5c 2f | 24 22 3e 29 20 61 6e 64 |$\it B\/|$">) and|
|00001b60| 20 3c 21 2d 2d 20 4d 41 | 54 48 0a 20 24 7b 5c 69 | <!-- MA|TH. ${\i|
|00001b70| 74 20 63 75 72 72 73 65 | 70 5c 2f 7d 3a 3d 7b 5c |t currse|p\/}:={\|
|00001b80| 69 74 20 6d 69 6e 73 65 | 70 5c 2f 7d 24 0a 20 2d |it minse|p\/}$. -|
|00001b90| 2d 3e 0a 3c 49 4d 47 0a | 20 53 54 59 4c 45 3d 22 |->.<IMG.| STYLE="|
|00001ba0| 22 20 53 52 43 3d 22 69 | 6d 67 31 33 2e 70 6e 67 |" SRC="i|mg13.png|
|00001bb0| 22 0a 20 41 4c 54 3d 22 | 24 5c 69 74 20 63 75 72 |". ALT="|$\it cur|
|00001bc0| 72 73 65 70 5c 2f 24 22 | 3e 20 3a 20 3d 20 3c 49 |rsep\/$"|> : = <I|
|00001bd0| 4d 47 0a 20 53 54 59 4c | 45 3d 22 22 20 53 52 43 |MG. STYL|E="" SRC|
|00001be0| 3d 22 69 6d 67 38 2e 70 | 6e 67 22 0a 20 41 4c 54 |="img8.p|ng". ALT|
|00001bf0| 3d 22 24 5c 69 74 20 6d | 69 6e 73 65 70 5c 2f 24 |="$\it m|insep\/$|
|00001c00| 22 3e 2e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |">. | |
|00001c10| 20 20 20 20 20 20 20 20 | 20 20 0a 55 73 69 6e 67 | | .Using|
|00001c20| 20 3c 21 2d 2d 20 4d 41 | 54 48 0a 20 24 7b 5c 69 | <!-- MA|TH. ${\i|
|00001c30| 74 20 72 6f 66 66 5c 2f | 7d 28 7b 5c 69 74 20 41 |t roff\/|}({\it A|
|00001c40| 5c 2f 7d 29 24 0a 20 2d | 2d 3e 0a 3c 49 4d 47 0a |\/})$. -|->.<IMG.|
|00001c50| 20 53 54 59 4c 45 3d 22 | 22 20 53 52 43 3d 22 69 | STYLE="|" SRC="i|
|00001c60| 6d 67 31 34 2e 70 6e 67 | 22 0a 20 41 4c 54 3d 22 |mg14.png|". ALT="|
|00001c70| 24 5c 69 74 20 72 6f 66 | 66 5c 2f 24 22 3e 28 3c |$\it rof|f\/$">(<|
|00001c80| 49 4d 47 0a 20 53 54 59 | 4c 45 3d 22 22 20 53 52 |IMG. STY|LE="" SR|
|00001c90| 43 3d 22 69 6d 67 31 30 | 2e 70 6e 67 22 0a 20 41 |C="img10|.png". A|
|00001ca0| 4c 54 3d 22 24 5c 69 74 | 20 41 5c 2f 24 22 3e 29 |LT="$\it| A\/$">)|
|00001cb0| 20 61 6e 64 20 3c 21 2d | 2d 20 4d 41 54 48 0a 20 | and <!-|- MATH. |
|00001cc0| 24 7b 5c 69 74 20 6c 6f | 66 66 5c 2f 7d 28 7b 5c |${\it lo|ff\/}({\|
|00001cd0| 69 74 20 42 5c 2f 7d 29 | 24 0a 20 2d 2d 3e 0a 3c |it B\/})|$. -->.<|
|00001ce0| 49 4d 47 0a 20 53 54 59 | 4c 45 3d 22 22 20 53 52 |IMG. STY|LE="" SR|
|00001cf0| 43 3d 22 69 6d 67 31 35 | 2e 70 6e 67 22 0a 20 41 |C="img15|.png". A|
|00001d00| 4c 54 3d 22 24 5c 69 74 | 20 6c 6f 66 66 5c 2f 24 |LT="$\it| loff\/$|
|00001d10| 22 3e 28 3c 49 4d 47 0a | 20 53 54 59 4c 45 3d 22 |">(<IMG.| STYLE="|
|00001d20| 22 20 53 52 43 3d 22 69 | 6d 67 31 32 2e 70 6e 67 |" SRC="i|mg12.png|
|00001d30| 22 0a 20 41 4c 54 3d 22 | 24 5c 69 74 20 42 5c 2f |". ALT="|$\it B\/|
|00001d40| 24 22 3e 29 2c 20 77 65 | 20 63 61 6e 20 20 20 20 |$">), we| can |
|00001d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|00001d60| 70 72 6f 63 65 65 64 20 | 74 6f 20 63 61 6c 63 75 |proceed |to calcu|
|00001d70| 6c 61 74 65 20 3c 49 3e | 63 75 72 72 73 65 70 3c |late <I>|currsep<|
|00001d80| 2f 49 3e 20 66 6f 72 20 | 74 68 65 20 6e 65 78 74 |/I> for |the next|
|00001d90| 20 6c 65 76 65 6c 2e 20 | 20 20 20 20 20 20 20 20 | level. | |
|00001da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001db0| 20 0a 49 66 20 3c 21 2d | 2d 20 4d 41 54 48 0a 20 | .If <!-|- MATH. |
|00001dc0| 24 7b 5c 69 74 20 63 75 | 72 72 73 65 70 5c 2f 7d |${\it cu|rrsep\/}|
|00001dd0| 20 3c 20 7b 5c 69 74 20 | 6d 69 6e 73 65 70 5c 2f | < {\it |minsep\/|
|00001de0| 7d 24 0a 20 2d 2d 3e 0a | 3c 49 4d 47 0a 20 53 54 |}$. -->.|<IMG. ST|
|00001df0| 59 4c 45 3d 22 22 20 53 | 52 43 3d 22 69 6d 67 31 |YLE="" S|RC="img1|
|00001e00| 33 2e 70 6e 67 22 0a 20 | 41 4c 54 3d 22 24 5c 69 |3.png". |ALT="$\i|
|00001e10| 74 20 63 75 72 72 73 65 | 70 5c 2f 24 22 3e 20 26 |t currse|p\/$"> &|
|00001e20| 6c 74 3b 20 3c 49 4d 47 | 0a 20 53 54 59 4c 45 3d |lt; <IMG|. STYLE=|
|00001e30| 22 22 20 53 52 43 3d 22 | 69 6d 67 38 2e 70 6e 67 |"" SRC="|img8.png|
|00001e40| 22 0a 20 41 4c 54 3d 22 | 24 5c 69 74 20 6d 69 6e |". ALT="|$\it min|
|00001e50| 73 65 70 5c 2f 24 22 3e | 2c 20 77 65 20 68 61 76 |sep\/$">|, we hav|
|00001e60| 65 20 74 6f 20 69 6e 63 | 72 65 61 73 65 20 3c 49 |e to inc|rease <I|
|00001e70| 3e 74 6f 74 73 65 70 3c | 2f 49 3e 20 62 79 20 20 |>totsep<|/I> by |
|00001e80| 20 20 20 20 20 20 20 20 | 0a 74 68 65 20 64 69 66 | |.the dif|
|00001e90| 66 65 72 65 6e 63 65 20 | 61 6e 64 20 75 70 64 61 |ference |and upda|
|00001ea0| 74 65 20 3c 49 3e 63 75 | 72 72 73 65 70 3c 2f 49 |te <I>cu|rrsep</I|
|00001eb0| 3e 2e 20 54 68 69 73 20 | 70 72 6f 63 65 73 73 20 |>. This |process |
|00001ec0| 69 73 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |is | |
|00001ed0| 20 20 20 20 20 20 20 20 | 20 20 0a 69 74 65 72 61 | | .itera|
|00001ee0| 74 65 64 20 75 6e 74 69 | 6c 20 77 65 20 72 65 61 |ted unti|l we rea|
|00001ef0| 63 68 20 74 68 65 20 6c | 6f 77 65 73 74 20 6c 65 |ch the l|owest le|
|00001f00| 76 65 6c 20 6f 66 20 3c | 49 3e 41 3c 2f 49 3e 2e |vel of <|I>A</I>.|
|00001f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 0a 54 68 65 | | .The|
|00001f30| 6e 20 3c 49 3e 74 6f 74 | 73 65 70 3c 2f 49 3e 20 |n <I>tot|sep</I> |
|00001f40| 68 6f 6c 64 73 20 74 68 | 65 20 66 69 6e 61 6c 20 |holds th|e final |
|00001f50| 64 69 73 74 61 6e 63 65 | 20 62 65 74 77 65 65 6e |distance| between|
|00001f60| 20 74 68 65 20 20 20 20 | 20 20 20 20 20 20 20 20 | the | |
|00001f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 6e | | .n|
|00001f80| 6f 64 65 73 20 6f 66 20 | 3c 49 3e 41 3c 2f 49 3e |odes of |<I>A</I>|
|00001f90| 20 61 6e 64 20 3c 49 3e | 42 3c 2f 49 3e 2c 20 61 | and <I>|B</I>, a|
|00001fa0| 73 20 63 61 6c 63 75 6c | 61 74 65 64 20 62 79 20 |s calcul|ated by |
|00001fb0| 74 68 65 20 52 54 26 6e | 62 73 70 3b 61 6c 67 6f |the RT&n|bsp;algo|
|00001fc0| 72 69 74 68 6d 2e 20 0a | 49 66 20 74 68 65 20 72 |rithm. .|If the r|
|00001fd0| 6f 6f 74 20 6f 66 20 3c | 49 3e 43 3c 2f 49 3e 20 |oot of <|I>C</I> |
|00001fe0| 69 73 20 61 20 73 69 67 | 6e 69 66 69 63 61 6e 74 |is a sig|nificant|
|00001ff0| 20 6e 6f 64 65 2c 20 74 | 68 65 6e 20 74 68 65 20 | node, t|hen the |
|00002000| 61 64 64 69 74 69 6f 6e | 61 6c 20 73 70 61 63 65 |addition|al space|
|00002010| 20 2c 0a 77 68 69 63 68 | 20 69 73 20 30 70 74 20 | ,.which| is 0pt |
|00002020| 62 79 20 64 65 66 61 75 | 6c 74 2c 20 69 73 20 61 |by defau|lt, is a|
|00002030| 64 64 65 64 20 74 6f 20 | 3c 49 3e 74 6f 74 73 65 |dded to |<I>totse|
|00002040| 70 3c 2f 49 3e 2e 20 20 | 20 20 20 20 20 20 20 20 |p</I>. | |
|00002050| 20 20 20 20 20 0a 48 6f | 77 65 76 65 72 2c 20 74 | .Ho|wever, t|
|00002060| 68 65 20 61 70 70 72 6f | 61 63 68 20 6f 66 20 73 |he appro|ach of s|
|00002070| 79 6e 74 68 65 73 69 7a | 69 6e 67 20 20 20 20 20 |ynthesiz|ing |
|00002080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002090| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000020a0| 20 20 20 20 20 20 0a 64 | 72 61 77 69 6e 67 73 20 | .d|rawings |
|000020b0| 66 72 6f 6d 20 73 69 6d | 70 6c 65 20 67 72 61 70 |from sim|ple grap|
|000020c0| 68 69 63 73 20 63 68 61 | 72 61 63 74 65 72 73 20 |hics cha|racters |
|000020d0| 61 6c 6c 6f 77 73 20 6f | 6e 6c 79 20 61 20 66 69 |allows o|nly a fi|
|000020e0| 6e 69 74 65 20 20 20 20 | 20 20 20 20 20 20 20 20 |nite | |
|000020f0| 20 20 20 20 20 20 20 0a | 6e 75 6d 62 65 72 20 6f | .|number o|
|00002100| 66 20 6f 72 69 65 6e 74 | 61 74 69 6f 6e 73 20 66 |f orient|ations f|
|00002110| 6f 72 20 74 68 65 20 74 | 72 65 65 20 65 64 67 65 |or the t|ree edge|
|00002120| 73 3b 20 74 68 65 72 65 | 66 6f 72 65 2c 20 3c 49 |s; there|fore, <I|
|00002130| 3e 74 6f 74 73 65 70 3c | 2f 49 3e 20 20 20 20 20 |>totsep<|/I> |
|00002140| 20 20 20 20 20 20 20 20 | 20 0a 6d 75 73 74 20 62 | | .must b|
|00002150| 65 20 69 6e 63 72 65 61 | 73 65 64 20 73 6c 69 67 |e increa|sed slig|
|00002160| 68 74 6c 79 20 74 6f 20 | 66 69 74 20 74 68 65 20 |htly to |fit the |
|00002170| 6e 65 78 74 20 6f 72 69 | 65 6e 74 61 74 69 6f 6e |next ori|entation|
|00002180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002190| 20 20 20 20 20 20 20 20 | 20 20 0a 61 76 61 69 6c | | .avail|
|000021a0| 61 62 6c 65 2e 20 20 20 | 20 20 20 20 20 20 20 20 |able. | |
|000021b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000021e0| 20 20 20 20 20 20 20 20 | 20 20 20 0a 0a 3c 50 3e | | ..<P>|
|000021f0| 0a 4e 6f 77 20 77 65 20 | 61 72 65 20 72 65 61 64 |.Now we |are read|
|00002200| 79 20 74 6f 20 63 6f 6e | 73 74 72 75 63 74 20 74 |y to con|struct t|
|00002210| 68 65 20 62 6f 78 20 6f | 66 20 54 3c 53 4d 41 4c |he box o|f T<SMAL|
|00002220| 4c 3e 45 3c 2f 53 4d 41 | 4c 4c 3e 58 74 72 65 65 |L>E</SMA|LL>Xtree|
|00002230| 26 6e 62 73 70 3b 3c 49 | 3e 43 3c 2f 49 3e 2e 20 |&nbsp;<I|>C</I>. |
|00002240| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002250| 20 20 20 0a 53 69 6d 70 | 6c 79 20 70 75 74 20 3c | .Simp|ly put <|
|00002260| 49 3e 41 3c 2f 49 3e 20 | 61 6e 64 26 6e 62 73 70 |I>A</I> |and&nbsp|
|00002270| 3b 3c 49 3e 42 3c 2f 49 | 3e 20 73 69 64 65 20 62 |;<I>B</I|> side b|
|00002280| 79 20 73 69 64 65 2c 20 | 77 69 74 68 20 74 68 65 |y side, |with the|
|00002290| 20 72 65 66 65 72 65 6e | 63 65 20 20 20 20 20 20 | referen|ce |
|000022a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000022b0| 0a 70 6f 69 6e 74 73 20 | 3c 49 3e 74 6f 74 73 65 |.points |<I>totse|
|000022c0| 70 3c 2f 49 3e 26 6e 62 | 73 70 3b 75 6e 69 74 73 |p</I>&nb|sp;units|
|000022d0| 20 61 70 61 72 74 2c 20 | 69 6e 73 65 72 74 20 61 | apart, |insert a|
|000022e0| 20 6e 65 77 20 6e 6f 64 | 65 20 20 20 20 20 20 20 | new nod|e |
|000022f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002300| 20 20 20 20 20 20 20 0a | 61 62 6f 76 65 20 74 68 | .|above th|
|00002310| 65 6d 2c 20 61 6e 64 20 | 63 6f 6e 6e 65 63 74 20 |em, and |connect |
|00002320| 74 68 65 20 70 61 72 65 | 6e 74 20 61 6e 64 20 63 |the pare|nt and c|
|00002330| 68 69 6c 64 72 65 6e 20 | 62 79 20 65 64 67 65 73 |hildren |by edges|
|00002340| 2e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002350| 20 20 20 20 20 20 20 20 | 0a 0a 3c 50 3e 0a 4e 65 | |..<P>.Ne|
|00002360| 78 74 2c 20 77 65 20 75 | 70 64 61 74 65 20 74 68 |xt, we u|pdate th|
|00002370| 65 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 69 6e 66 |e additi|onal inf|
|00002380| 6f 72 6d 61 74 69 6f 6e | 20 20 20 20 20 20 20 20 |ormation| |
|00002390| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000023a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 66 | | .f|
|000023b0| 6f 72 20 3c 49 3e 43 3c | 2f 49 3e 2e 20 54 68 69 |or <I>C<|/I>. Thi|
|000023c0| 73 20 63 61 6e 20 62 65 | 20 64 6f 6e 65 20 62 79 |s can be| done by|
|000023d0| 20 75 73 69 6e 67 20 74 | 68 65 20 61 64 64 69 74 | using t|he addit|
|000023e0| 69 6f 6e 61 6c 20 69 6e | 66 6f 72 6d 61 74 69 6f |ional in|formatio|
|000023f0| 6e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |n | |
|00002400| 0a 66 6f 72 20 3c 49 3e | 41 3c 2f 49 3e 20 61 6e |.for <I>|A</I> an|
|00002410| 64 26 6e 62 73 70 3b 3c | 49 3e 42 3c 2f 49 3e 2e |d&nbsp;<|I>B</I>.|
|00002420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002440| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002450| 20 20 20 20 20 20 20 20 | 0a 4e 6f 74 65 20 74 68 | |.Note th|
|00002460| 61 74 20 6d 6f 73 74 20 | 63 6f 6d 70 6f 6e 65 6e |at most |componen|
|00002470| 74 73 20 6f 66 20 3c 21 | 2d 2d 20 4d 41 54 48 0a |ts of <!|-- MATH.|
|00002480| 20 24 7b 5c 69 74 20 72 | 6f 66 66 5c 2f 7d 28 7b | ${\it r|off\/}({|
|00002490| 5c 69 74 20 43 5c 2f 7d | 29 24 0a 20 2d 2d 3e 0a |\it C\/}|)$. -->.|
|000024a0| 3c 49 4d 47 0a 20 53 54 | 59 4c 45 3d 22 22 20 53 |<IMG. ST|YLE="" S|
|000024b0| 52 43 3d 22 69 6d 67 31 | 34 2e 70 6e 67 22 0a 20 |RC="img1|4.png". |
|000024c0| 41 4c 54 3d 22 24 5c 69 | 74 20 72 6f 66 66 5c 2f |ALT="$\i|t roff\/|
|000024d0| 24 22 3e 28 3c 49 4d 47 | 0a 20 53 54 59 4c 45 3d |$">(<IMG|. STYLE=|
|000024e0| 22 22 20 53 52 43 3d 22 | 69 6d 67 31 36 2e 70 6e |"" SRC="|img16.pn|
|000024f0| 67 22 0a 20 41 4c 54 3d | 22 24 5c 69 74 20 43 5c |g". ALT=|"$\it C\|
|00002500| 2f 24 22 3e 29 20 61 6e | 64 20 20 20 20 20 20 20 |/$">) an|d |
|00002510| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002520| 20 20 20 0a 3c 21 2d 2d | 20 4d 41 54 48 0a 20 24 | .<!--| MATH. $|
|00002530| 7b 5c 69 74 20 6c 72 6f | 66 66 5c 2f 7d 28 7b 5c |{\it lro|ff\/}({\|
|00002540| 69 74 20 43 5c 2f 7d 29 | 24 0a 20 2d 2d 3e 0a 3c |it C\/})|$. -->.<|
|00002550| 49 4d 47 0a 20 53 54 59 | 4c 45 3d 22 22 20 53 52 |IMG. STY|LE="" SR|
|00002560| 43 3d 22 69 6d 67 31 37 | 2e 70 6e 67 22 0a 20 41 |C="img17|.png". A|
|00002570| 4c 54 3d 22 24 5c 69 74 | 20 6c 72 6f 66 66 5c 2f |LT="$\it| lroff\/|
|00002580| 24 22 3e 28 3c 49 4d 47 | 0a 20 53 54 59 4c 45 3d |$">(<IMG|. STYLE=|
|00002590| 22 22 20 53 52 43 3d 22 | 69 6d 67 31 36 2e 70 6e |"" SRC="|img16.pn|
|000025a0| 67 22 0a 20 41 4c 54 3d | 22 24 5c 69 74 20 43 5c |g". ALT=|"$\it C\|
|000025b0| 2f 24 22 3e 29 20 61 72 | 65 20 74 68 65 20 73 61 |/$">) ar|e the sa|
|000025c0| 6d 65 20 61 73 20 69 6e | 20 74 68 65 20 68 69 67 |me as in| the hig|
|000025d0| 68 65 72 20 74 72 65 65 | 2c 20 77 68 69 63 68 20 |her tree|, which |
|000025e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|000025f0| 69 73 20 3c 49 3e 42 3c | 2f 49 3e 20 69 6e 20 6f |is <I>B<|/I> in o|
|00002600| 75 72 20 63 61 73 65 2e | 20 20 20 20 20 20 20 20 |ur case.| |
|00002610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002620| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002640| 20 0a 53 6f 2c 20 69 66 | 20 77 65 20 63 61 6e 20 | .So, if| we can |
|00002650| 61 76 6f 69 64 20 6d 6f | 76 69 6e 67 20 74 68 69 |avoid mo|ving thi|
|00002660| 73 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 72 |s inform|ation ar|
|00002670| 6f 75 6e 64 2c 20 77 65 | 20 6f 6e 6c 79 20 68 61 |ound, we| only ha|
|00002680| 76 65 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ve | |
|00002690| 20 20 0a 74 6f 20 61 63 | 63 65 73 73 20 3c 21 2d | .to ac|cess <!-|
|000026a0| 2d 20 4d 41 54 48 0a 20 | 24 7b 5c 69 74 20 68 65 |- MATH. |${\it he|
|000026b0| 69 67 68 74 5c 2f 7d 28 | 7b 5c 69 74 20 41 5c 2f |ight\/}(|{\it A\/|
|000026c0| 7d 29 20 2b 20 7b 5c 69 | 74 20 63 6f 6e 73 74 5c |}) + {\i|t const\|
|000026d0| 2f 7d 24 0a 20 2d 2d 3e | 0a 3c 49 4d 47 0a 20 53 |/}$. -->|.<IMG. S|
|000026e0| 54 59 4c 45 3d 22 22 20 | 53 52 43 3d 22 69 6d 67 |TYLE="" |SRC="img|
|000026f0| 31 38 2e 70 6e 67 22 0a | 20 41 4c 54 3d 22 24 5c |18.png".| ALT="$\|
|00002700| 69 74 20 68 65 69 67 68 | 74 5c 2f 24 22 3e 28 3c |it heigh|t\/$">(<|
|00002710| 49 4d 47 0a 20 53 54 59 | 4c 45 3d 22 22 20 53 52 |IMG. STY|LE="" SR|
|00002720| 43 3d 22 69 6d 67 31 30 | 2e 70 6e 67 22 0a 20 41 |C="img10|.png". A|
|00002730| 4c 54 3d 22 24 5c 69 74 | 20 41 5c 2f 24 22 3e 29 |LT="$\it| A\/$">)|
|00002740| 20 2b 20 3c 49 4d 47 0a | 20 53 54 59 4c 45 3d 22 | + <IMG.| STYLE="|
|00002750| 22 20 53 52 43 3d 22 69 | 6d 67 31 39 2e 70 6e 67 |" SRC="i|mg19.png|
|00002760| 22 0a 20 41 4c 54 3d 22 | 24 5c 69 74 20 63 6f 6e |". ALT="|$\it con|
|00002770| 73 74 5c 2f 24 22 3e 20 | 6d 61 6e 79 20 63 6f 75 |st\/$"> |many cou|
|00002780| 6e 74 65 72 73 20 69 6e | 20 20 20 20 20 20 20 20 |nters in| |
|00002790| 20 20 20 20 20 20 20 20 | 0a 6f 72 64 65 72 20 74 | |.order t|
|000027a0| 6f 20 75 70 64 61 74 65 | 20 74 68 65 20 61 64 64 |o update| the add|
|000027b0| 69 74 69 6f 6e 61 6c 20 | 69 6e 66 6f 72 6d 61 74 |itional |informat|
|000027c0| 69 6f 6e 20 66 6f 72 20 | 3c 49 3e 43 3c 2f 49 3e |ion for |<I>C</I>|
|000027d0| 2e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000027e0| 20 20 20 20 20 20 20 20 | 20 20 0a 54 68 69 73 20 | | .This |
|000027f0| 69 6d 70 6c 69 65 73 20 | 74 68 61 74 20 77 65 20 |implies |that we |
|00002800| 63 61 6e 20 61 70 70 6c | 79 20 74 68 65 20 73 61 |can appl|y the sa|
|00002810| 6d 65 20 61 72 67 75 6d | 65 6e 74 20 61 73 20 20 |me argum|ent as |
|00002820| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002830| 20 20 20 20 20 20 20 20 | 20 20 20 0a 69 6e 26 6e | | .in&n|
|00002840| 62 73 70 3b 5b 3c 41 20 | 48 52 45 46 3d 22 6e 6f |bsp;[<A |HREF="no|
|00002850| 64 65 31 33 5f 63 74 2e | 68 74 6d 6c 23 54 69 64 |de13_ct.|html#Tid|
|00002860| 69 65 72 54 72 65 65 73 | 22 20 54 41 52 47 45 54 |ierTrees|" TARGET|
|00002870| 3d 22 63 6f 6e 74 65 6e | 74 73 22 3e 31 35 3c 2f |="conten|ts">15</|
|00002880| 41 3e 5d 2c 20 77 68 69 | 63 68 20 67 69 76 65 73 |A>], whi|ch gives|
|00002890| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000028b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 75 | | .u|
|000028c0| 73 20 61 20 72 75 6e 6e | 69 6e 67 20 74 69 6d 65 |s a runn|ing time|
|000028d0| 20 6f 66 20 3c 49 3e 4f | 3c 2f 49 3e 28 3c 49 3e | of <I>O|</I>(<I>|
|000028e0| 4e 3c 2f 49 3e 29 20 66 | 6f 72 20 64 72 61 77 69 |N</I>) f|or drawi|
|000028f0| 6e 67 20 61 20 74 72 65 | 65 20 77 69 74 68 20 4e |ng a tre|e with N|
|00002900| 20 6e 6f 64 65 73 2e 20 | 20 20 20 20 20 20 20 20 | nodes. | |
|00002910| 20 20 20 20 20 20 20 20 | 20 20 0a 0a 3c 50 3e 0a | | ..<P>.|
|00002920| 54 68 65 72 65 66 6f 72 | 65 2c 20 77 65 20 6d 75 |Therefor|e, we mu|
|00002930| 73 74 20 63 61 72 65 66 | 75 6c 6c 79 20 64 65 73 |st caref|ully des|
|00002940| 69 67 6e 20 74 68 65 20 | 73 74 6f 72 61 67 65 20 |ign the |storage |
|00002950| 61 6c 6c 6f 63 61 74 69 | 6f 6e 20 66 6f 72 20 20 |allocati|on for |
|00002960| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002970| 0a 74 68 65 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |.the add|itional |
|00002980| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 6f 66 20 54 |informat|ion of T|
|00002990| 3c 53 4d 41 4c 4c 3e 45 | 3c 2f 53 4d 41 4c 4c 3e |<SMALL>E|</SMALL>|
|000029a0| 58 74 72 65 65 73 20 69 | 6e 20 6f 72 64 65 72 20 |Xtrees i|n order |
|000029b0| 74 6f 20 66 75 6c 66 69 | 6c 6c 20 74 68 65 20 20 |to fulfi|ll the |
|000029c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 66 6f | | .fo|
|000029d0| 6c 6c 6f 77 69 6e 67 20 | 72 65 71 75 69 72 65 6d |llowing |requirem|
|000029e0| 65 6e 74 73 3a 20 20 20 | 20 20 20 20 20 20 20 20 |ents: | |
|000029f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 49 | | .I|
|00002a20| 66 20 61 20 6e 65 77 20 | 74 72 65 65 20 69 73 20 |f a new |tree is |
|00002a30| 62 75 69 6c 74 20 66 72 | 6f 6d 20 20 20 20 20 20 |built fr|om |
|00002a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 0a | | .|
|00002a70| 74 77 6f 20 73 75 62 74 | 72 65 65 73 2c 20 74 68 |two subt|rees, th|
|00002a80| 65 20 61 64 64 69 74 69 | 6f 6e 61 6c 20 69 6e 66 |e additi|onal inf|
|00002a90| 6f 72 6d 61 74 69 6f 6e | 20 6f 66 20 74 68 65 20 |ormation| of the |
|00002aa0| 6e 65 77 20 74 72 65 65 | 20 73 68 6f 75 6c 64 20 |new tree| should |
|00002ab0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ac0| 0a 73 68 61 72 65 20 73 | 74 6f 72 61 67 65 20 77 |.share s|torage w|
|00002ad0| 69 74 68 20 69 74 73 20 | 6c 61 72 67 65 72 20 73 |ith its |larger s|
|00002ae0| 75 62 74 72 65 65 2e 20 | 20 20 20 20 20 20 20 20 |ubtree. | |
|00002af0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b10| 20 0a 4f 72 67 61 6e 69 | 7a 61 74 69 6f 6e 61 6c | .Organi|zational|
|00002b20| 20 6f 76 65 72 68 65 61 | 64 2c 20 74 68 61 74 20 | overhea|d, that |
|00002b30| 69 73 2c 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |is, | |
|00002b40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b60| 20 20 0a 70 6f 69 6e 74 | 65 72 73 20 77 68 69 63 | .point|ers whic|
|00002b70| 68 20 6b 65 65 70 20 74 | 72 61 63 6b 20 6f 66 20 |h keep t|rack of |
|00002b80| 74 68 65 20 6c 6f 63 61 | 74 69 6f 6e 73 20 6f 66 |the loca|tions of|
|00002b90| 20 64 69 66 66 65 72 65 | 6e 74 20 70 61 72 74 73 | differe|nt parts|
|00002ba0| 20 6f 66 20 61 64 64 69 | 74 69 6f 6e 61 6c 20 20 | of addi|tional |
|00002bb0| 20 20 20 0a 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2c | .info|rmation,|
|00002bc0| 20 6d 75 73 74 20 62 65 | 20 61 76 6f 69 64 65 64 | must be| avoided|
|00002bd0| 2e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002be0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002bf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002c00| 20 20 20 20 0a 54 68 69 | 73 20 6d 65 61 6e 73 20 | .Thi|s means |
|00002c10| 74 68 61 74 20 61 6c 6c | 20 74 68 65 20 61 64 64 |that all| the add|
|00002c20| 69 74 69 6f 6e 61 6c 20 | 69 6e 66 6f 72 6d 61 74 |itional |informat|
|00002c30| 69 6f 6e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ion | |
|00002c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002c50| 20 20 20 20 20 0a 66 6f | 72 20 6f 6e 65 20 54 3c | .fo|r one T<|
|00002c60| 53 4d 41 4c 4c 3e 45 3c | 2f 53 4d 41 4c 4c 3e 58 |SMALL>E<|/SMALL>X|
|00002c70| 74 72 65 65 20 73 68 6f | 75 6c 64 20 62 65 20 73 |tree sho|uld be s|
|00002c80| 74 6f 72 65 64 20 69 6e | 20 61 20 72 6f 77 20 6f |tored in| a row o|
|00002c90| 66 20 63 6f 6e 73 65 63 | 75 74 69 76 65 20 64 69 |f consec|utive di|
|00002ca0| 6d 65 6e 73 69 6f 6e 20 | 72 65 67 69 73 74 65 72 |mension |register|
|00002cb0| 73 20 20 20 20 20 20 20 | 20 20 20 20 0a 73 75 63 |s | .suc|
|00002cc0| 68 20 74 68 61 74 20 6f | 6e 6c 79 20 6f 6e 65 20 |h that o|nly one |
|00002cd0| 70 6f 69 6e 74 65 72 20 | 67 72 61 6e 74 69 6e 67 |pointer |granting|
|00002ce0| 20 61 63 63 65 73 73 20 | 74 6f 20 74 68 65 20 66 | access |to the f|
|00002cf0| 69 72 73 74 20 65 6c 65 | 6d 65 6e 74 20 20 20 20 |irst ele|ment |
|00002d00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002d10| 20 20 20 20 0a 69 6e 20 | 74 68 69 73 20 72 6f 77 | .in |this row|
|00002d20| 20 69 73 20 6e 65 65 64 | 65 64 2e 20 20 20 20 20 | is need|ed. |
|00002d30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002d50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002d60| 20 20 20 20 20 0a 4f 6e | 20 74 68 65 20 6f 74 68 | .On| the oth|
|00002d70| 65 72 20 68 61 6e 64 2c | 20 65 61 63 68 20 70 61 |er hand,| each pa|
|00002d80| 72 65 6e 74 20 20 20 20 | 20 20 20 20 20 20 20 20 |rent | |
|00002d90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002db0| 20 20 20 20 20 20 0a 74 | 72 65 65 20 69 73 20 68 | .t|ree is h|
|00002dc0| 69 67 68 65 72 20 61 6e | 64 20 74 68 65 72 65 66 |igher an|d theref|
|00002dd0| 6f 72 65 20 6e 65 65 64 | 73 20 6d 6f 72 65 20 73 |ore need|s more s|
|00002de0| 74 6f 72 61 67 65 20 74 | 68 61 6e 20 69 74 73 20 |torage t|han its |
|00002df0| 73 75 62 74 72 65 65 73 | 2e 20 20 20 20 20 20 20 |subtrees|. |
|00002e00| 20 20 20 20 20 20 20 0a | 53 6f 20 77 65 20 6d 75 | .|So we mu|
|00002e10| 73 74 20 65 6e 73 75 72 | 65 20 74 68 61 74 20 74 |st ensur|e that t|
|00002e20| 68 65 72 65 20 69 73 20 | 61 6c 77 61 79 73 20 65 |here is |always e|
|00002e30| 6e 6f 75 67 68 20 73 70 | 61 63 65 20 69 6e 20 74 |nough sp|ace in t|
|00002e40| 68 65 20 72 6f 77 20 20 | 20 20 20 20 20 20 20 20 |he row | |
|00002e50| 20 20 20 20 20 20 20 20 | 0a 66 6f 72 20 6d 6f 72 | |.for mor|
|00002e60| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2e 20 20 |e inform|ation. |
|00002e70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002ea0| 20 20 20 20 20 20 20 20 | 20 0a 0a 3c 50 3e 0a 54 | | ..<P>.T|
|00002eb0| 68 65 20 6f 62 76 69 6f | 75 73 20 77 61 79 20 74 |he obvio|us way t|
|00002ec0| 6f 20 66 75 6c 66 69 6c | 6c 20 74 68 65 73 65 20 |o fulfil|l these |
|00002ed0| 72 65 71 75 69 72 65 6d | 65 6e 74 73 20 69 73 20 |requirem|ents is |
|00002ee0| 74 6f 20 75 73 65 20 61 | 20 73 74 61 63 6b 20 61 |to use a| stack a|
|00002ef0| 6e 64 20 74 6f 20 20 20 | 20 20 20 20 20 20 20 20 |nd to | |
|00002f00| 0a 61 6c 6c 6f 77 20 6f | 6e 6c 79 20 74 68 65 20 |.allow o|nly the |
|00002f10| 74 6f 70 6d 6f 73 74 20 | 54 3c 53 4d 41 4c 4c 3e |topmost |T<SMALL>|
|00002f20| 45 3c 2f 53 4d 41 4c 4c | 3e 58 74 72 65 65 73 20 |E</SMALL|>Xtrees |
|00002f30| 6f 66 20 74 68 69 73 20 | 73 74 61 63 6b 20 74 6f |of this |stack to|
|00002f40| 20 62 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | be | |
|00002f50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 63 6f | | .co|
|00002f60| 6d 62 69 6e 65 64 20 69 | 6e 74 6f 20 61 20 6c 61 |mbined i|nto a la|
|00002f70| 72 67 65 72 20 74 72 65 | 65 20 61 74 20 61 6e 79 |rger tre|e at any|
|00002f80| 20 74 69 6d 65 2e 20 20 | 20 20 20 20 20 20 20 20 | time. | |
|00002f90| 20 20 20 20 20 20 20 20 | 20 0a 54 68 69 73 20 6c | | .This l|
|00002fa0| 65 61 64 73 20 74 6f 20 | 74 68 65 20 66 6f 6c 6c |eads to |the foll|
|00002fb0| 6f 77 69 6e 67 20 72 65 | 67 69 73 74 65 72 20 61 |owing re|gister a|
|00002fc0| 6c 6c 6f 63 61 74 69 6f | 6e 3a 20 41 20 73 75 62 |llocatio|n: A sub|
|00002fd0| 73 65 71 75 65 6e 74 20 | 6e 75 6d 62 65 72 20 6f |sequent |number o|
|00002fe0| 66 20 20 20 20 20 20 20 | 20 20 0a 62 6f 78 20 72 |f | .box r|
|00002ff0| 65 67 69 73 74 65 72 73 | 20 63 6f 6e 74 61 69 6e |egisters| contain|
|00003000| 73 20 74 68 65 20 74 72 | 65 65 62 6f 78 65 73 20 |s the tr|eeboxes |
|00003010| 6f 66 20 74 68 65 20 73 | 75 62 74 72 65 65 73 20 |of the s|ubtrees |
|00003020| 69 6e 20 74 68 65 20 73 | 74 61 63 6b 2e 20 41 20 |in the s|tack. A |
|00003030| 20 20 20 20 20 20 20 20 | 20 20 20 0a 73 75 62 73 | | .subs|
|00003040| 65 71 75 65 6e 74 20 6e | 75 6d 62 65 72 20 6f 66 |equent n|umber of|
|00003050| 20 74 6f 6b 65 6e 20 72 | 65 67 69 73 74 65 72 73 | token r|egisters|
|00003060| 20 63 6f 6e 74 61 69 6e | 73 20 74 68 65 20 74 79 | contain|s the ty|
|00003070| 70 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 66 |pe infor|mation f|
|00003080| 6f 72 20 74 68 65 20 20 | 20 20 20 20 0a 6e 6f 64 |or the | .nod|
|00003090| 65 73 20 6f 66 20 74 68 | 65 20 73 75 62 74 72 65 |es of th|e subtre|
|000030a0| 65 73 20 69 6e 20 74 68 | 65 20 73 74 61 63 6b 2e |es in th|e stack.|
|000030b0| 20 46 6f 72 20 65 61 63 | 68 20 73 75 62 74 72 65 | For eac|h subtre|
|000030c0| 65 20 69 6e 20 74 68 65 | 20 73 74 61 63 6b 2c 20 |e in the| stack, |
|000030d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 61 20 | | .a |
|000030e0| 73 75 62 73 65 71 75 65 | 6e 74 20 6e 75 6d 62 65 |subseque|nt numbe|
|000030f0| 72 20 6f 66 20 64 69 6d | 65 6e 73 69 6f 6e 20 72 |r of dim|ension r|
|00003100| 65 67 69 73 74 65 72 73 | 20 63 6f 6e 74 61 69 6e |egisters| contain|
|00003110| 73 20 74 68 65 20 63 6f | 6e 74 6f 75 72 20 20 20 |s the co|ntour |
|00003120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 69 | | .i|
|00003130| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 6f 66 20 74 68 |nformati|on of th|
|00003140| 65 20 73 75 62 74 72 65 | 65 2e 20 54 68 65 20 6f |e subtre|e. The o|
|00003150| 72 64 65 72 69 6e 67 20 | 6f 66 20 74 68 65 73 65 |rdering |of these|
|00003160| 20 67 72 6f 75 70 73 20 | 6f 66 20 64 69 6d 65 6e | groups |of dimen|
|00003170| 73 69 6f 6e 20 20 20 20 | 20 20 20 20 20 20 20 0a |sion | .|
|00003180| 72 65 67 69 73 74 65 72 | 73 20 72 65 66 6c 65 63 |register|s reflec|
|00003190| 74 73 20 74 68 65 20 6f | 72 64 65 72 69 6e 67 20 |ts the o|rdering |
|000031a0| 6f 66 20 74 68 65 20 73 | 75 62 74 72 65 65 73 20 |of the s|ubtrees |
|000031b0| 69 6e 20 74 68 65 20 20 | 20 20 20 20 20 20 20 20 |in the | |
|000031c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000031d0| 0a 73 74 61 63 6b 2e 20 | 46 69 6e 61 6c 6c 79 2c |.stack. |Finally,|
|000031e0| 20 61 20 73 75 62 73 65 | 71 75 65 6e 74 20 6e 75 | a subse|quent nu|
|000031f0| 6d 62 65 72 20 6f 66 20 | 63 6f 75 6e 74 65 72 20 |mber of |counter |
|00003200| 72 65 67 69 73 74 65 72 | 73 20 63 6f 6e 74 61 69 |register|s contai|
|00003210| 6e 73 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ns | |
|00003220| 20 0a 74 68 65 20 68 65 | 69 67 68 74 20 61 6e 64 | .the he|ight and|
|00003230| 20 74 68 65 20 61 64 64 | 72 65 73 73 20 6f 66 20 | the add|ress of |
|00003240| 74 68 65 20 66 69 72 73 | 74 20 64 69 6d 65 6e 73 |the firs|t dimens|
|00003250| 69 6f 6e 20 72 65 67 69 | 73 74 65 72 20 66 6f 72 |ion regi|ster for|
|00003260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003270| 20 20 0a 65 61 63 68 20 | 73 75 62 74 72 65 65 20 | .each |subtree |
|00003280| 69 6e 20 74 68 65 20 73 | 74 61 63 6b 2e 20 46 6f |in the s|tack. Fo|
|00003290| 75 72 20 61 64 64 72 65 | 73 73 20 63 6f 75 6e 74 |ur addre|ss count|
|000032a0| 65 72 73 20 73 74 6f 72 | 65 20 74 68 65 20 61 64 |ers stor|e the ad|
|000032b0| 64 72 65 73 73 65 73 20 | 20 20 20 20 20 20 20 20 |dresses | |
|000032c0| 20 20 20 0a 6f 66 20 74 | 68 65 20 6c 61 73 74 20 | .of t|he last |
|000032d0| 74 72 65 65 62 6f 78 2c | 20 74 79 70 65 20 69 6e |treebox,| type in|
|000032e0| 66 6f 72 6d 61 74 69 6f | 6e 2c 20 68 65 69 67 68 |formatio|n, heigh|
|000032f0| 74 2c 20 61 6e 64 20 61 | 64 64 72 65 73 73 20 6f |t, and a|ddress o|
|00003300| 66 20 63 6f 6e 74 6f 75 | 72 20 20 20 20 20 20 20 |f contou|r |
|00003310| 20 20 20 20 0a 69 6e 66 | 6f 72 6d 61 74 69 6f 6e | .inf|ormation|
|00003320| 2e 20 41 20 73 6b 65 74 | 63 68 20 6f 66 20 74 68 |. A sket|ch of th|
|00003330| 65 20 72 65 67 69 73 74 | 65 72 20 6f 72 67 61 6e |e regist|er organ|
|00003340| 69 7a 61 74 69 6f 6e 20 | 66 6f 72 20 61 20 73 74 |ization |for a st|
|00003350| 61 63 6b 20 6f 66 20 54 | 3c 53 4d 41 4c 4c 3e 45 |ack of T|<SMALL>E|
|00003360| 3c 2f 53 4d 41 4c 4c 3e | 58 74 72 65 65 73 0a 69 |</SMALL>|Xtrees.i|
|00003370| 73 20 70 72 6f 76 69 64 | 65 64 20 69 6e 20 46 69 |s provid|ed in Fi|
|00003380| 67 75 72 65 26 6e 62 73 | 70 3b 3c 41 20 48 52 45 |gure&nbs|p;<A HRE|
|00003390| 46 3d 22 6e 6f 64 65 36 | 5f 63 74 2e 68 74 6d 6c |F="node6|_ct.html|
|000033a0| 23 52 65 67 69 73 74 65 | 72 73 22 3e 3c 49 4d 47 |#Registe|rs"><IMG|
|000033b0| 20 20 41 4c 54 3d 22 5b | 2a 5d 22 20 53 52 43 3d | ALT="[|*]" SRC=|
|000033c0| 22 63 72 6f 73 73 72 65 | 66 2e 70 6e 67 22 3e 3c |"crossre|f.png"><|
|000033d0| 2f 41 3e 2e 0a 0a 3c 50 | 3e 0a 0a 3c 44 49 56 20 |/A>...<P|>..<DIV |
|000033e0| 63 6c 61 73 73 3d 22 43 | 45 4e 54 45 52 22 3e 3c |class="C|ENTER"><|
|000033f0| 41 20 49 44 3d 22 52 65 | 67 69 73 74 65 72 73 22 |A ID="Re|gisters"|
|00003400| 3e 3c 2f 41 3e 3c 41 20 | 49 44 3d 22 37 32 37 22 |></A><A |ID="727"|
|00003410| 3e 3c 2f 41 3e 0a 3c 54 | 41 42 4c 45 3e 0a 3c 43 |></A>.<T|ABLE>.<C|
|00003420| 41 50 54 49 4f 4e 20 63 | 6c 61 73 73 3d 22 42 4f |APTION c|lass="BO|
|00003430| 54 54 4f 4d 22 3e 3c 53 | 54 52 4f 4e 47 3e 46 69 |TTOM"><S|TRONG>Fi|
|00003440| 67 75 72 65 3a 3c 2f 53 | 54 52 4f 4e 47 3e 0a 3c |gure:</S|TRONG>.<|
|00003450| 49 3e 6c 61 73 74 74 72 | 65 65 62 6f 78 3c 2f 49 |I>lasttr|eebox</I|
|00003460| 3e 2c 20 3c 49 3e 6c 61 | 73 74 74 72 65 65 68 65 |>, <I>la|sttreehe|
|00003470| 69 67 68 74 3c 2f 49 3e | 2c 20 3c 49 3e 6c 61 73 |ight</I>|, <I>las|
|00003480| 74 74 72 65 65 69 6e 66 | 6f 3c 2f 49 3e 2c 20 20 |ttreeinf|o</I>, |
|00003490| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000034a0| 20 20 0a 3c 49 3e 6c 61 | 73 74 74 72 65 65 74 79 | .<I>la|sttreety|
|000034b0| 70 65 3c 2f 49 3e 20 63 | 6f 6e 74 61 69 6e 20 70 |pe</I> c|ontain p|
|000034c0| 6f 69 6e 74 65 72 73 20 | 74 6f 20 3c 49 3e 74 72 |ointers |to <I>tr|
|000034d0| 65 65 62 6f 78 3c 2f 49 | 3e 28 3c 49 3e 6e 3c 2f |eebox</I|>(<I>n</|
|000034e0| 49 3e 29 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |I>) | |
|000034f0| 20 20 20 20 20 20 20 20 | 20 20 20 0a 3c 49 3e 74 | | .<I>t|
|00003500| 72 65 65 68 65 69 67 68 | 74 3c 2f 49 3e 28 3c 49 |reeheigh|t</I>(<I|
|00003510| 3e 6e 3c 2f 49 3e 29 2c | 20 3c 49 3e 6c 6d 6f 66 |>n</I>),| <I>lmof|
|00003520| 66 3c 2f 49 3e 28 3c 49 | 3e 6e 3c 2f 49 3e 29 2c |f</I>(<I|>n</I>),|
|00003530| 20 3c 49 3e 74 79 70 65 | 3c 2f 49 3e 28 3c 49 3e | <I>type|</I>(<I>|
|00003540| 6e 3c 2f 49 3e 29 2c 20 | 20 20 20 20 20 20 20 20 |n</I>), | |
|00003550| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 3c | | .<|
|00003560| 49 3e 64 69 6d 69 6e 66 | 6f 3c 2f 49 3e 28 3c 49 |I>diminf|o</I>(<I|
|00003570| 3e 69 3c 2f 49 3e 29 20 | 63 6f 6e 74 61 69 6e 73 |>i</I>) |contains|
|00003580| 20 61 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 20 20 | a point|er to |
|00003590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000035a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000035b0| 20 20 20 20 20 0a 3c 49 | 3e 6c 6d 6f 66 66 3c 2f | .<I|>lmoff</|
|000035c0| 49 3e 28 3c 49 3e 69 3c | 2f 49 3e 29 2e 20 55 6e |I>(<I>i<|/I>). Un|
|000035d0| 75 73 65 64 20 64 69 6d | 65 6e 73 69 6f 6e 20 72 |used dim|ension r|
|000035e0| 65 67 69 73 74 65 72 73 | 20 61 72 65 20 20 20 20 |egisters| are |
|000035f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003600| 20 20 20 20 20 20 20 20 | 20 20 20 20 0a 61 6c 6c | | .all|
|00003610| 6f 77 65 64 20 62 65 74 | 77 65 65 6e 20 74 68 65 |owed bet|ween the|
|00003620| 20 64 69 6d 65 6e 73 69 | 6f 6e 20 72 65 67 69 73 | dimensi|on regis|
|00003630| 74 65 72 73 20 6f 66 20 | 73 75 62 73 65 71 75 65 |ters of |subseque|
|00003640| 6e 74 20 74 72 65 65 73 | 2e 20 54 68 65 20 63 6f |nt trees|. The co|
|00003650| 75 6e 74 65 72 0a 72 65 | 67 69 73 74 65 72 73 20 |unter.re|gisters |
|00003660| 3c 49 3e 6c 61 73 74 74 | 72 65 65 62 6f 78 3c 2f |<I>lastt|reebox</|
|00003670| 49 3e 2c 2e 2e 2e 2c 3c | 49 3e 64 69 6d 69 6e 66 |I>,...,<|I>diminf|
|00003680| 6f 3c 2f 49 3e 28 3c 49 | 3e 6e 3c 2f 49 3e 29 20 |o</I>(<I|>n</I>) |
|00003690| 73 65 72 76 65 20 61 73 | 20 61 20 64 69 72 65 63 |serve as| a direc|
|000036a0| 74 6f 72 79 0a 6d 65 63 | 68 61 6e 69 73 6d 20 74 |tory.mec|hanism t|
|000036b0| 6f 20 61 63 63 65 73 73 | 20 74 68 65 20 54 3c 53 |o access| the T<S|
|000036c0| 4d 41 4c 4c 3e 45 3c 2f | 53 4d 41 4c 4c 3e 58 74 |MALL>E</|SMALL>Xt|
|000036d0| 72 65 65 73 20 6f 6e 20 | 74 68 65 20 73 74 61 63 |rees on |the stac|
|000036e0| 6b 2e 3c 2f 43 41 50 54 | 49 4f 4e 3e 0a 3c 54 52 |k.</CAPT|ION>.<TR|
|000036f0| 3e 3c 54 44 3e 3c 49 4d | 47 0a 20 53 54 59 4c 45 |><TD><IM|G. STYLE|
|00003700| 3d 22 22 20 53 52 43 3d | 22 69 6d 67 32 30 2e 70 |="" SRC=|"img20.p|
|00003710| 6e 67 22 0a 20 41 4c 54 | 3d 22 5c 62 65 67 69 6e |ng". ALT|="\begin|
|00003720| 7b 66 69 67 75 72 65 7d | 5c 76 73 70 61 63 65 7b |{figure}|\vspace{|
|00003730| 31 5c 62 61 73 65 6c 69 | 6e 65 73 6b 69 70 7d 44 |1\baseli|neskip}D|
|00003740| 69 6d 65 6e 73 69 6f 6e | 20 72 65 67 69 73 74 65 |imension| registe|
|00003750| 72 73 5c 5c 0a 7b 5c 69 | 74 20 6c 6d 6f 66 66 5c |rs\\.{\i|t lmoff\|
|00003760| 2f 7d 28 31 29 20 7b 5c | 69 2e 2e 2e 0a 2e 2e 2e |/}(1) {\|i.......|
|00003770| 74 20 74 79 70 65 5c 2f | 7d 28 31 29 20 5c 64 6f |t type\/|}(1) \do|
|00003780| 74 73 5c 20 7b 5c 69 74 | 20 74 79 70 65 5c 2f 7d |ts\ {\it| type\/}|
|00003790| 28 24 6e 24 29 0a 5c 70 | 61 72 0a 5c 76 73 70 61 |($n$).\p|ar.\vspa|
|000037a0| 63 65 7b 31 5c 62 61 73 | 65 6c 69 6e 65 73 6b 69 |ce{1\bas|elineski|
|000037b0| 70 7d 5c 65 6e 64 7b 66 | 69 67 75 72 65 7d 22 3e |p}\end{f|igure}">|
|000037c0| 3c 2f 54 44 3e 3c 2f 54 | 52 3e 0a 3c 2f 54 41 42 |</TD></T|R>.</TAB|
|000037d0| 4c 45 3e 0a 3c 2f 44 49 | 56 3e 0a 0a 3c 50 3e 0a |LE>.</DI|V>..<P>.|
|000037e0| 57 68 65 6e 20 61 20 6e | 65 77 20 6e 6f 64 65 20 |When a n|ew node |
|000037f0| 69 73 20 70 75 73 68 65 | 64 20 6f 6e 74 6f 20 74 |is pushe|d onto t|
|00003800| 68 65 20 73 74 61 63 6b | 2c 20 74 68 65 20 74 72 |he stack|, the tr|
|00003810| 65 65 62 6f 78 2c 20 74 | 79 70 65 20 69 6e 66 6f |eebox, t|ype info|
|00003820| 72 6d 61 74 69 6f 6e 2c | 20 20 20 20 20 20 20 20 |rmation,| |
|00003830| 0a 68 65 69 67 68 74 2c | 20 61 64 64 72 65 73 73 |.height,| address|
|00003840| 20 6f 66 20 63 6f 6e 74 | 6f 75 72 20 69 6e 66 6f | of cont|our info|
|00003850| 72 6d 61 74 69 6f 6e 2c | 20 61 6e 64 20 63 6f 6e |rmation,| and con|
|00003860| 74 6f 75 72 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |tour inf|ormation|
|00003870| 20 61 72 65 20 20 20 20 | 20 20 20 20 20 20 20 20 | are | |
|00003880| 20 0a 73 74 6f 72 65 64 | 20 69 6e 20 74 68 65 20 | .stored| in the |
|00003890| 6e 65 78 74 20 66 72 65 | 65 20 72 65 67 69 73 74 |next fre|e regist|
|000038a0| 65 72 73 20 6f 66 20 74 | 68 65 20 61 70 70 72 6f |ers of t|he appro|
|000038b0| 70 72 69 61 74 65 20 74 | 79 70 65 2c 20 61 6e 64 |priate t|ype, and|
|000038c0| 20 74 68 65 20 20 20 20 | 20 20 20 20 20 20 20 20 | the | |
|000038d0| 20 20 0a 66 6f 75 72 20 | 61 64 64 72 65 73 73 20 | .four |address |
|000038e0| 63 6f 75 6e 74 65 72 73 | 20 61 72 65 20 75 70 64 |counters| are upd|
|000038f0| 61 74 65 64 20 61 63 63 | 6f 72 64 69 6e 67 6c 79 |ated acc|ordingly|
|00003900| 2e 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003910| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003920| 20 20 20 0a 0a 3c 50 3e | 0a 57 68 65 6e 20 61 20 | ..<P>|.When a |
|00003930| 6e 65 77 20 74 72 65 65 | 20 69 73 20 66 6f 72 6d |new tree| is form|
|00003940| 65 64 20 66 72 6f 6d 20 | 74 68 65 20 74 6f 70 6d |ed from |the topm|
|00003950| 6f 73 74 20 73 75 62 74 | 72 65 65 73 20 6f 6e 20 |ost subt|rees on |
|00003960| 74 68 65 20 73 74 61 63 | 6b 2c 20 20 20 20 20 20 |the stac|k, |
|00003970| 20 20 20 20 20 20 20 20 | 20 0a 74 68 65 20 74 72 | | .the tr|
|00003980| 65 65 62 6f 78 2c 20 74 | 79 70 65 20 69 6e 66 6f |eebox, t|ype info|
|00003990| 72 6d 61 74 69 6f 6e 2c | 20 68 65 69 67 68 74 2c |rmation,| height,|
|000039a0| 20 61 6e 64 20 61 64 64 | 72 65 73 73 20 6f 66 20 | and add|ress of |
|000039b0| 63 6f 6e 74 6f 75 72 20 | 69 6e 66 6f 72 6d 61 74 |contour |informat|
|000039c0| 69 6f 6e 20 20 20 20 20 | 20 20 0a 6f 66 20 74 68 |ion | .of th|
|000039d0| 65 20 6e 65 77 20 74 72 | 65 65 20 61 72 65 20 73 |e new tr|ee are s|
|000039e0| 6f 72 74 65 64 20 69 6e | 20 74 68 65 20 72 65 67 |orted in| the reg|
|000039f0| 69 73 74 65 72 73 20 66 | 6f 72 6d 65 72 6c 79 20 |isters f|ormerly |
|00003a00| 75 73 65 64 20 62 79 20 | 74 68 65 20 62 6f 74 74 |used by |the bott|
|00003a10| 6f 6d 6d 6f 73 74 20 20 | 20 20 20 0a 73 75 62 74 |ommost | .subt|
|00003a20| 72 65 65 20 74 68 61 74 | 20 68 61 73 20 6f 63 63 |ree that| has occ|
|00003a30| 75 72 65 64 20 69 6e 20 | 74 68 65 20 63 6f 6e 73 |ured in |the cons|
|00003a40| 74 72 75 63 74 69 6f 6e | 20 73 74 65 70 2c 20 61 |truction| step, a|
|00003a50| 6e 64 20 74 68 65 20 66 | 6f 75 72 20 61 64 64 72 |nd the f|our addr|
|00003a60| 65 73 73 20 72 65 67 69 | 73 74 65 72 73 20 61 72 |ess regi|sters ar|
|00003a70| 65 20 20 20 20 20 20 20 | 0a 75 70 64 61 74 65 64 |e |.updated|
|00003a80| 20 61 63 63 6f 72 64 69 | 6e 67 6c 79 2e 20 54 68 | accordi|ngly. Th|
|00003a90| 69 73 20 6d 65 61 6e 73 | 20 74 68 61 74 20 74 68 |is means| that th|
|00003aa0| 65 73 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 73 |ese info|rmations|
|00003ab0| 20 66 6f 72 20 74 68 65 | 20 73 75 62 74 72 65 65 | for the| subtree|
|00003ac0| 73 20 20 20 20 20 20 20 | 20 0a 61 72 65 20 6e 6f |s | .are no|
|00003ad0| 20 6c 6f 6e 67 65 72 20 | 61 63 63 65 73 73 69 62 | longer |accessib|
|00003ae0| 6c 65 2e 20 54 68 65 20 | 63 6f 6e 74 6f 75 72 20 |le. The |contour |
|00003af0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 6f 66 20 74 |informat|ion of t|
|00003b00| 68 65 20 6e 65 77 20 73 | 75 62 74 72 65 65 20 20 |he new s|ubtree |
|00003b10| 20 20 20 20 20 20 20 20 | 20 20 0a 69 73 20 73 74 | | .is st|
|00003b20| 6f 72 65 64 20 69 6e 20 | 74 68 65 20 73 61 6d 65 |ored in |the same|
|00003b30| 20 72 65 67 69 73 74 65 | 72 73 20 61 73 20 74 68 | registe|rs as th|
|00003b40| 65 20 63 6f 6e 74 6f 75 | 72 20 69 6e 66 6f 72 6d |e contou|r inform|
|00003b50| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 6c 61 72 |ation of| the lar|
|00003b60| 67 65 72 20 20 20 20 20 | 20 20 20 0a 73 75 62 74 |ger | .subt|
|00003b70| 72 65 65 20 75 73 65 64 | 20 69 6e 20 74 68 65 20 |ree used| in the |
|00003b80| 63 6f 6e 73 74 72 75 63 | 74 69 6f 6e 2c 20 61 70 |construc|tion, ap|
|00003b90| 61 72 74 20 66 72 6f 6d | 20 74 68 65 20 6c 65 66 |art from| the lef|
|00003ba0| 74 20 61 6e 64 20 72 69 | 67 68 74 20 6f 66 66 73 |t and ri|ght offs|
|00003bb0| 65 74 20 20 20 20 20 20 | 20 20 20 20 0a 6f 66 20 |et | .of |
|00003bc0| 74 68 65 20 72 6f 6f 74 | 20 74 6f 20 74 68 65 20 |the root| to the |
|00003bd0| 6c 65 66 74 20 61 6e 64 | 20 72 69 67 68 74 20 63 |left and| right c|
|00003be0| 68 69 6c 64 2c 20 77 68 | 69 63 68 20 61 72 65 20 |hild, wh|ich are |
|00003bf0| 73 74 6f 72 65 64 20 69 | 6e 20 74 68 65 20 20 20 |stored i|n the |
|00003c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 0a 66 6f | | .fo|
|00003c10| 6c 6c 6f 77 69 6e 67 20 | 64 69 6d 65 6e 73 69 6f |llowing |dimensio|
|00003c20| 6e 20 72 65 67 69 73 74 | 65 72 73 2e 20 54 68 61 |n regist|ers. Tha|
|00003c30| 74 20 6d 65 61 6e 73 20 | 74 68 61 74 20 67 61 70 |t means |that gap|
|00003c40| 73 20 63 61 6e 20 6f 63 | 63 75 72 20 20 20 20 20 |s can oc|cur |
|00003c50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 0a 62 | | .b|
|00003c60| 65 74 77 65 65 6e 20 74 | 68 65 20 63 6f 6e 74 6f |etween t|he conto|
|00003c70| 75 72 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6f |ur infor|mation o|
|00003c80| 66 20 73 75 62 73 65 71 | 75 65 6e 74 20 73 75 62 |f subseq|uent sub|
|00003c90| 74 72 65 65 73 20 69 6e | 20 74 68 65 20 20 20 20 |trees in| the |
|00003ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003cb0| 0a 73 74 61 63 6b 2c 20 | 6e 61 6d 65 6c 79 20 77 |.stack, |namely w|
|00003cc0| 68 65 6e 20 74 68 65 20 | 72 69 67 68 74 20 73 75 |hen the |right su|
|00003cd0| 62 74 72 65 65 2c 20 77 | 68 69 63 68 20 69 73 20 |btree, w|hich is |
|00003ce0| 6f 6e 20 61 20 68 69 67 | 68 65 72 20 70 6f 73 69 |on a hig|her posi|
|00003cf0| 74 69 6f 6e 20 6f 6e 20 | 74 68 65 20 20 20 20 20 |tion on |the |
|00003d00| 20 0a 73 74 61 63 6b 2c | 20 69 73 20 68 69 67 68 | .stack,| is high|
|00003d10| 65 72 20 74 68 61 6e 20 | 74 68 65 20 6c 65 66 74 |er than |the left|
|00003d20| 20 6f 6e 65 2e 20 49 6e | 20 6f 72 64 65 72 20 74 | one. In| order t|
|00003d30| 6f 20 61 76 6f 69 64 20 | 74 68 65 73 65 20 20 20 |o avoid |these |
|00003d40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003d50| 20 20 0a 67 61 70 73 2c | 20 74 68 65 20 75 73 65 | .gaps,| the use|
|00003d60| 72 20 63 61 6e 20 73 70 | 65 63 69 66 79 20 61 6e |r can sp|ecify an|
|00003d70| 20 6f 70 74 69 6f 6e 20 | 3c 63 6f 64 65 3e 5c 6c | option |<code>\l|
|00003d80| 65 66 74 74 6f 70 3c 2f | 63 6f 64 65 3e 20 77 68 |efttop</|code> wh|
|00003d90| 65 6e 20 65 6e 74 65 72 | 69 6e 67 20 61 20 20 20 |en enter|ing a |
|00003da0| 20 20 20 20 20 20 20 20 | 20 0a 62 69 6e 61 72 79 | | .binary|
|00003db0| 20 6e 6f 64 65 2c 20 77 | 68 69 63 68 20 6d 61 6b | node, w|hich mak|
|00003dc0| 65 73 20 74 68 65 20 74 | 6f 70 6d 6f 73 74 20 74 |es the t|opmost t|
|00003dd0| 72 65 65 20 69 6e 20 74 | 68 65 20 73 74 61 63 6b |ree in t|he stack|
|00003de0| 20 74 68 65 20 20 20 20 | 20 20 20 20 20 20 20 20 | the | |
|00003df0| 20 20 20 20 20 20 20 20 | 20 20 0a 6c 65 66 74 20 | | .left |
|00003e00| 73 75 62 74 72 65 65 20 | 6f 66 20 74 68 65 20 6e |subtree |of the n|
|00003e10| 6f 64 65 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |ode. | |
|00003e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003e40| 20 20 20 20 20 20 20 20 | 20 20 20 0a 0a 3c 50 3e | | ..<P>|
|00003e50| 0a 54 68 69 73 20 73 74 | 61 63 6b 20 63 6f 6e 63 |.This st|ack conc|
|00003e60| 65 70 74 20 61 6c 73 6f | 20 68 61 73 20 63 6f 6e |ept also| has con|
|00003e70| 73 65 71 75 65 6e 63 65 | 73 20 66 6f 72 20 74 68 |sequence|s for th|
|00003e80| 65 20 64 65 73 69 67 6e | 20 6f 66 20 74 68 65 20 |e design| of the |
|00003e90| 75 73 65 72 20 69 6e 74 | 65 72 66 61 63 65 20 20 |user int|erface |
|00003ea0| 20 0a 74 68 61 74 20 69 | 73 20 64 69 73 63 75 73 | .that i|s discus|
|00003eb0| 73 65 64 20 69 6e 20 53 | 65 63 74 69 6f 6e 26 6e |sed in S|ection&n|
|00003ec0| 62 73 70 3b 3c 41 20 48 | 52 45 46 3d 22 6e 6f 64 |bsp;<A H|REF="nod|
|00003ed0| 65 38 5f 63 74 2e 68 74 | 6d 6c 23 49 6e 74 65 72 |e8_ct.ht|ml#Inter|
|00003ee0| 66 61 63 65 22 3e 3c 49 | 4d 47 20 20 41 4c 54 3d |face"><I|MG ALT=|
|00003ef0| 22 5b 2a 5d 22 20 53 52 | 43 3d 22 63 72 6f 73 73 |"[*]" SR|C="cross|
|00003f00| 72 65 66 2e 70 6e 67 22 | 3e 3c 2f 41 3e 2e 20 20 |ref.png"|></A>. |
|00003f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f30| 20 0a 0a 3c 50 3e 0a 0a | 3c 48 52 3e 0a 0a 3c 2f | ..<P>..|<HR>..</|
|00003f40| 42 4f 44 59 3e 0a 3c 2f | 48 54 4d 4c 3e 0a |BODY>.</|HTML>. |
+--------+-------------------------+-------------------------+--------+--------+